Comment on Tutorial - Use of return statement in Java By Emiley J



Comment Added by : Anonymous

Comment Added at : 2013-05-17 08:53:20

Comment on Tutorial : Use of return statement in Java By Emiley J
Comment: Just for future readers: (apart from the annoying capulation the last reader used): toString(), make a method hereof:
public String toString() { String s = \"blablabla\" + w.e you want to add from the class + \"blabla \" + (you can add w.e you like aslong if its in the class); return s; } and where you want it get the toString() method, and System.out.println (or w/e you use like a label) and you can get it on your screen.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Well the code is good but what if students start e
View Tutorial          By: nitin kumar sharma at 2015-07-15 06:58:18

2. i want to study java
View Tutorial          By: doshyo at 2007-12-13 07:41:03

3. Hi,

I am new to html, and javascrip

View Tutorial          By: Tom Theriault at 2010-12-14 14:54:09

4. Looks good. This is going to be a good resource.
View Tutorial          By: Brainpower at 2013-03-02 02:45:11

5. Hi Ashish, You just have to create an object of SM
View Tutorial          By: Ramlak at 2007-03-13 09:22:51

6. as in property we set the value and then retrieve
View Tutorial          By: Deep at 2011-03-18 21:00:54

7. pls tell me how to run the prog step by step. just
View Tutorial          By: divakar varshney at 2015-04-02 11:14:34

8. If i run this program----



View Tutorial          By: pratham at 2010-09-22 10:10:11

9. in this matter i get also this exception :

View Tutorial          By: oded at 2008-09-28 05:41:35

10. Can any one say how to send a message to a particu
View Tutorial          By: Sankar guru.P at 2012-01-05 07:43:44