• Post Reply Bookmark Topic Watch Topic
  • New Topic

error adding two numbers  RSS feed

 
pranav tata
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am new to this forum. this is my first post. I am new to java. I am not getting output to this question though it runs. I hope someone can help me with this
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

What do you mean by "it runs"? Since the code has no "main" method it can't be run directly, so how are you running it? If you add one, it would work fine:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!