• Post Reply Bookmark Topic Watch Topic
  • New Topic

I, amijava, am a newbie eager to learn Java  RSS feed

 
Amicus Mundi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, compatriots!
I am here to begin learning Java. I just learnt to operate Eclipse. I posted a thread there with the heading:
To learn Eclipse via "Hello World" tutorial - which Checkbox?
Now without the elaborate visual forms, how could I have a Hello World printed on the console? What codes would I require to manually enter to get a Hello World output?
Thank you in anticipation!
 
Amicus Mundi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cajn't I edit my post in this forum?
I found the reply here Your First Java Program: Hello World
 
Amicus Mundi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Knoppix and Eclipse, and Java is installed in my system ab initio.
From the above mentioned website, I found the following:
Saving the following codes in a text editor and name the file HelloWorld.java

Then the page further proceeds towards compiling the file with the code:
and running the program as

I noticed only one difference: I could use the following codes instead:
, i.e., without the "% "
 
Amicus Mundi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Subsequently, I also finished the exercise given there:
Codes as follows:
gives the output mentioned there.
I also replied to the questions posted there.
 
Amicus Mundi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also learnt about input data. It is said in the page:
Typically, we want to provide input to our programs: data that they can process to produce a result. The simplest way to provide input data is illustrated in UseArgument.java. Whenever this program is executed, it reads the command-line argument that you type after the program name and prints it back out to the terminal as part of the message.

   
        Hi, Alice. How are you?
       Hi, Bob. How are you?


 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch If you are still at the hello world stage, I think you shouldn't use Eclipse. Look at our FAQ, or this section in the Java™ Tutorials.
 
John Joe
Ranch Hand
Posts: 443
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,what is your question ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!