How to
create your first Java code on Eclipse: Class 200
Double click on Eclipse short-cut icon, mine Eclipse IDE is Juno flavour.
Click New+ under file menu option then
again click on Java project.(Fig. J1)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJMjg4wLnPy7fT6QnRkAdetGyayR3Ud5B0qMiksTfpWEpYqD36LZsiMUNam7JaqtbfH55ag4_i-RAlroqA_dtTrXnfsEWpciJXMTG9yQ8EeQqRVfd7VnMXPsBTS3tSfc6iBt5P/s400/J1.png)
Click next after entering Java Project
name.(Fig. J2)
In Java settings page (Fig. J3) just click finished.
After this
the IDE workbench windows (means the windows for writing code opens) now, again
right click on “src” folder select “New” and then select “Class” (Fig. J4).
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZwxBx8n4J5K0vQOwWRBmFrWhF31CwhC9ifkOakRrsm-UEM_KE_xzs6DwqHM3OSP-514-pl6n2zki93AF0F3c9qZV-nTmjD7Fd3kn7Krr8cW30_F1ehyphenhyphenyTcEu5AAU4XZcjI_sQ/s400/J4.png)
A New Java “class” file windows opens up, write down the name for that
class and click finished. (Fig. J5).
Now the user named class file open up.
(Fig. J6)
Now write down the code, which shared in the
Fig. J7.
And now, you can see your
output/result in the eclipse-ide console window.
No comments:
Post a Comment