![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2004
Posts: 1
Rep Power: 0
![]() |
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... |
|
|
|
|
|
#2 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Change System.out.printin to System.out.println .
It's with a lowercase 'L', not an 'I'.
__________________
"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." - Dwight D. Eisenhower |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
__________________
"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 |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2004
Posts: 9
Rep Power: 0
![]() |
the problem is that you didnt put
System.out.println |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Sep 2004
Posts: 9
Rep Power: 0
![]() |
Please put [solved] in the title if you have fixed the problem just so that people know that you dont need help anymore.
|
|
|
|
|
|
#7 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#8 |
|
Programming Guru
![]() |
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 |
|
|
|
|
|
#9 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#10 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
i concur
:ph34r:
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|