First, install all the required IDE components. From Eclipse. org
Then what follows is quite simple~, just a start!
1, Create A Java Project as "Hello World"
2, it seems pretty much an OO language, to me at least. What to do next is to add a class. It should be familiar to you if you 've got hands on Objective C, the powerful development language Apple uses.
3, Create A class from the menu, which is a Java Class instead of NS Object Class as in COCOA:
Check the Public Void Main() Function. So it would be the default entry for your app.
CONTAST: in COCOA, it's created automatically by the project and runs in the background. It's invisible to you in oBJC
4, Create the method, or , function in main() as:
System.out.print("");
and Run
5, Bingo: You got it in your console
BO
2011.5.8
No comments:
Post a Comment