• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I, amijava, am a newbie eager to learn Java

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?



 
Marshal
Posts: 79401
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 570
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,what is your question ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic