Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 11th, 2004, 5:44 PM   #1
Venarx
Newbie
 
Join Date: Sep 2004
Posts: 1
Rep Power: 0 Venarx is on a distinguished road
I just started a tutorial on java programming. A simple Hello world program. I used javac in command prompt(java HelloJava.java) but I have two errors. Both are the same. Its not understanding System.out.printin
Here is my source code:
class HelloJava {
 
  public static void main(String args[]) {

  System.out.printin("Hello Java,");
  System.out.printin("It's me...");

 }

}

Here is the error message I get.
HelloJava.java:5: cannot resolve symbol
symbol : method printin <java.lang.string>
location: class java.io.PrintStream
   System.out.printin("Hello Java,");
           ^

HelloJava.java:6: cannot resolve symbol
symbol : method printin <java.lang.string>
location: class java.io.PrintStream
   System.out.printin("It's me...,");
           ^

I can't figure it out...
Venarx is offline   Reply With Quote
Old Sep 11th, 2004, 6:06 PM   #2
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Change System.out.printin to System.out.println .

It's with a lowercase 'L', not an 'I'.
__________________
&quot;Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children.&quot; - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Sep 12th, 2004, 1:13 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Yup. That should do the trick for sure. I need to brush up on my Java also . So many languages, so little time. Btw, welcome to the forum!
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Sep 13th, 2004, 3:57 AM   #4
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
yeah it is

System.out.println(string);

NOT: System.out.printin(string);
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 16th, 2004, 11:27 AM   #5
raziel
Newbie
 
Join Date: Sep 2004
Posts: 9
Rep Power: 0 raziel is on a distinguished road
the problem is that you didnt put
System.out.println
you just got i and l confused
raziel is offline   Reply With Quote
Old Sep 16th, 2004, 11:33 AM   #6
raziel
Newbie
 
Join Date: Sep 2004
Posts: 9
Rep Power: 0 raziel is on a distinguished road
Please put [solved] in the title if you have fixed the problem just so that people know that you dont need help anymore.
raziel is offline   Reply With Quote
Old Sep 16th, 2004, 11:38 AM   #7
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 5 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
 
System.out.printin("Hello Java,");
         ^

System.out.printin("It's me...,");
         ^

Just F.Y.I. , since this type of thing will no doubt come up a lot as you get started, take note of the '^' in your error messages. It actually points to the problems in the code. I dealt with this a lot when I was learning Python. Once I figured that little tid-bit out it helped immensely, as I spent less time looking through all of the code for the problem(s) and more time correcting and learning new things.
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Sep 16th, 2004, 11:40 AM   #8
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
for the simple errors yes, for the harder ones generally it point to no where helpful, and you have to do stack tracing to find the error, and een that doesn;t help sometimes.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 17th, 2004, 9:54 AM   #9
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 5 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
Excellent point. But all was really trying to point out is that's a good starting point, if you're new to programming. You are absolutely right, however, and I apologize for not being clearer.
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Oct 31st, 2004, 2:13 AM   #10
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
i concur

:ph34r:
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC