This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Can you help explain the following code: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can you help explain the following code:" Watch "Can you help explain the following code:" New topic
Author

Can you help explain the following code:

Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
I have a main method with the following statements:



The first line is creating a PropertyType
The second line is calling a method called message

The method message has the following line of code:


Unfortunately what I expected was the output to be displayed on screen but I got zero. It compiled ok though??
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Forget this question (My brain went dead)

Ensured the method returned void and used System.out.println

Sorry for wasting your time!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you help explain the following code:
 
Similar Threads
converting a character into a number
Struts: No getter method for property... (but not the usual suspects)
Unexpected results from StringTokenizer
calculating commission
<jsp:useBean> example