Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating and Printing Objects

 
Kevan Ryan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Javaranchers,

At the moment, I am struggling through learning the concept of creating your own objects in Java. Right now, I'm attempting to create a class and object, and then print the said object. The program compiles and runs fine, but does not print anything. Because I'm new to the concept of objects, I'm pretty sure the logic of the program is not correct, but I don't know where to look first.

Any advice would be much appreciated.

Thanks in advance

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Main.main doesn't do anything. You're not running Rational.main.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic