xcode 将swift转换为java?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28256321/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:34:45  来源:igfitidea点击:

convert swift to java?

javaiosxcodeswift

提问by MobileGamer

I recently started programming and I started with swift which I now think was a bad idea because only ios uses it and it's pretty new. Anyways, I have an app that id like to port to android. Is my only option learning java? Or is there something that could help me?

我最近开始编程,我从 swift 开始,我现在认为这是一个坏主意,因为只有 ios 使用它而且它很新。无论如何,我有一个 id 喜欢移植到 android 的应用程序。学习java是我唯一的选择吗?或者有什么可以帮助我的吗?

回答by Christian

Yes. In that case you'd have to learn Java. But you could also try to use a language which supports Android and iOS. For example if you want to develop games you can use something like ActionScript 3with Starlingand Adobe Air.

是的。在这种情况下,您必须学习 Java。但您也可以尝试使用支持 Android 和 iOS 的语言。例如,如果您想开发游戏,您可以将ActionScript 3Starling和 Adob​​e Air 结合使用。

The pro point there is that you have to learn just one language and it's like a hybrid which works on both platforms.

优点是你只需要学习一种语言,它就像一种可以在两个平台上运行的混合体。

In my opinion I would recommend you to learn Java as your second language, because it's always nice to know more than one programming language. That way you are much more openminded.

在我看来,我建议你学习 Java 作为你的第二语言,因为知道不止一种编程语言总是好的。这样你的思想就会开放得多。