Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can not find symbol / Variable out error  RSS feed

 
Vladimir Glushko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I'm an ultimate beginner and started from "Head First Java". And failed to compiled very first program.
During the complilation there were following errors:

error: can not find symbol
System.Out.Println("I'm ruling")
symbol: Variable out
location: Class System

and same for System.Out.Println("the world")

P.S. Already set up JDK folder in System Variables and checked is complied is configured by "javac -version".

So what's wrong with me?
 
Arun Chidambaram
Greenhorn
Posts: 16
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is a case sensitive program. Check Java API for method signatures and case sensitivity. On below code it should be System.out.println(....)
Vladimir Glushko wrote:System.Out.Println("I'm ruling")
 
Liutauras Vilda
Marshal
Posts: 4635
316
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vladimir,

Welcome to the Ranch, nice to see you around

One thing before you start contributing in this nice community - please UseCodeTags (<- link to click on) when you post actual code. It will make your code look in a code format. I have added them for you this time, see how better it looks like?
 
Vladimir Glushko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Liutauras Vilda wrote:Hi Vladimir,

Welcome to the Ranch, nice to see you around

One thing before you start contributing in this nice community - please UseCodeTags (<- link to click on) when you post actual code. It will make your code look in a code format. I have added them for you this time, see how better it looks like?


Thank you, noted. Will use this in future
 
Vladimir Glushko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun Chidambaram wrote:Java is a case sensitive program. Check Java API for method signatures and case sensitivity. On below code it should be System.out.println(....)
Vladimir Glushko wrote:System.Out.Println("I'm ruling")


Yes, this worked. How can I forget this? Thank you!

 
Liutauras Vilda
Marshal
Posts: 4635
316
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.

And please remember, class names suppose to start with upper case. That is by Java convention - it is important.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!