File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

missing return statement

 
Tripti Ag
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Below is a very simple program in Java. When I compile this program, I get error message - "missing return statement". Please suggest me why I am getting this error?

[Added code tags - see UseCodeTags for details]




 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case sensitive. You've declared your method to return a Void.
 
Tripti Ag
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic