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. i9s this such a hard ?

my head was

View Tutorial          By: shadow_5566 at 2009-05-14 01:32:01

2. Very Easy To Understand
View Tutorial          By: Najeeb at 2011-06-09 04:12:34

3. plz i want afull code to send sms to mobile includ
View Tutorial          By: alosh at 2010-10-17 08:39:25

4. it's very helpful for java beginner. thanks
View Tutorial          By: Pisal at 2012-12-03 05:00:54

5. hi can any one help me how to do basic pc actions
View Tutorial          By: karthikeyan at 2008-03-14 04:18:52

6. easy to understand for newbie... :P
View Tutorial          By: Emraan at 2011-11-02 16:09:56

7. Hii... pls how can I create a aerver with an inter
View Tutorial          By: WAZIRI at 2010-03-16 11:12:11

8. thanks for suppporting us
View Tutorial          By: sonia at 2010-11-29 00:46:56

9. i am a bca student. i want to know more about garb
View Tutorial          By: ahana at 2011-06-26 11:02:36

10. Hi every one. I am working on my project in j2me a
View Tutorial          By: Anonymous at 2011-05-01 09:04:16