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. Can you please send me the full code in sending an
View Tutorial          By: jen at 2008-05-28 00:22:21

2. Hagti hain.. the complete program has been copy pa
View Tutorial          By: Macho Man at 2012-06-21 07:58:03

3. i got error for below line

xlApp

View Tutorial          By: Satheyaraaj at 2015-04-28 07:47:42

4. Thanks dear
View Tutorial          By: Muthin at 2009-04-29 00:32:24

5. please give some examples of postfix and infix.
View Tutorial          By: john mark at 2012-10-07 13:55:04

6. Good job.
View Tutorial          By: Som2ie at 2010-08-02 05:07:37

7. plz can you help me,,,because i need this tomorrow
View Tutorial          By: ivie at 2012-12-12 11:20:35

8. This tutorial is very good. Actually I have been s
View Tutorial          By: farhaan at 2008-03-20 15:22:13

9. i am new to java plz give any sample and simple ja
View Tutorial          By: sham at 2012-03-20 02:30:20

10. Hi sir just send me the code sir .... i am interes
View Tutorial          By: maruthi at 2013-10-30 05:14:15