We will call it HelloWorld . 让我们来看看一个简单的视图页的helloWorld . Let us look a simple view page HelloWorld . This is our first helloworld . 但是,HelloWorld 类只有一个Main方法。 However, the HelloWorld class has only one method Main.
The application will be called HelloWorld . To execute the program type: java helloworld . 然后我们可以运行它:javaHelloWorld 。 Run it with java HelloWorld . HelloWorld 应用程序创建Greeter类的一个新实例。The HelloWorld application creates an new instance of the Greeter class. The contract is going to be called HelloWorld . 因为/是不受支持的字符,因此第二个文件被重命名为HelloWorld .doc。 Because% is an unsupported character, the second file is renamed HelloWorld . doc. 然后我们可以运行它:javaHelloWorld . And then I can type java HelloWorld to run it. HelloWorld 是类名,你需要让类名与文件同名。HelloWorld is your class name and you will need your class name to be the same name as your file. 这是在告诉Java你想运行HelloWorld 类。 This tells Java that you want to run the class HelloWorld . (3)按图1-25所示将Android项目命名为HelloWorld ,然后单击Next按钮。 Name the Android project HelloWorld , as shown in Figure 1-25, and then click Next. 我的第一个Android应用程序HelloWorld . This application is my first Android application and it's a Helloworld . 注意,HelloWorld 现在已安装在应用程序启动器中(如图1-33所示)。 That the HelloWorld application is now installed in the application launcher(see Figure 1-28). This function is responsible for the HelloWorld function export. 例如,HelloWorld 示例,其APK的最终大小减少了83%:. For example, consider the HelloWorld sample, which experiences an 83% reduction in the final size of its APK:. 我们必须首先编译程序:javachelloworld .java。 We have to first compile the program: javac HelloWorld . java. 本书的示例多半使用一个应用程序标识符com.sadun.helloworld 。 For the most part, the samples for this book use a single application identifier, com. sadun. helloworld . The first example is the classic HelloWorld program.第三行有一个类声明,HelloWorld 类包含程序使用的数据和方法定义。 The next line has a class declaration, the class HelloWorld contains the data and method definitions that your program uses. 这告诉Java编译器你想要编译HelloWorld .java。 This tells the Java compiler that you want to compile HelloWorld . java. 如果代码没有错误,命令提示符会进入下一行,并生成helloworld .exe可执行文件。 If there are no errors in your code, the command prompt takes you to the next line and generates helloworld . exe executable file. 将你的项目路径位置中的untitled更改为helloworld ,你所看到的界面细节应该类似于下方这番:. Change untitled to helloworld as the location of the project, you should see details similar to this:. 离开澳洲航空后,他在Helloworld (原JetsetTravelworldGroup)担任了两年首席执行官。 After leaving Qantas in 2012, he served for two years as CEO of helloworld (previously branded Jetset Travelworld Group). 如果代码没有错误,命令提示符会进入下一行,并生成helloworld .exe可执行文件。 If there are no errors in your code the command prompt will take you to the next line and would generate helloworld . exe executable file. 因此,上例中的声明,在定义了一个名为的HelloWorld 类的同时,还声明了该类的一个实例,实例的名字也叫HelloWorld 。 The declaration above thus declares both a class called HelloWorld and an instance of that class, also called HelloWorld . 如果在你的代码中没有错误命令提示符下会带你到下一行,并会产生HelloWorld .exe的可执行文件。 If there are no errors in your code the command prompt will take you to the next line and would generate helloworld . exe executable file.
展示更多例子
结果: 69 ,
时间: 0.0149
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt