Comment on Tutorial - String Conversion and toString() in Java By Mashoud



Comment Added by : David

Comment Added at : 2010-07-08 03:34:13

Comment on Tutorial : String Conversion and toString() in Java By Mashoud
sir... i made a program just like that ... but there is an error "C:\Documents and Settings\ali\My Documents\Triangle.java:38: toString() in Triangle cannot override toString() in java.lang.Object; attempting to use incompatible return type
found : String
required: java.lang.String
public String toString()" <-- this is my problemm... it will not override...please elp...


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. Actually, looking at the code, it looks as somethi
View Tutorial          By: Johnson at 2009-07-28 08:14:38

2. nice one its very useful
View Tutorial          By: jhejhe at 2010-02-21 05:03:50

3. i am newly in java. please send basic sample progr
View Tutorial          By: bhuvana at 2012-11-21 06:50:01

4. Very usefull info.. Thank alot
View Tutorial          By: Srikanth at 2012-09-04 15:44:30

5. Good explanation but I think there's a slight mist
View Tutorial          By: Cheeseman at 2009-05-19 10:12:11

6. where i put this rar file to include comm api
View Tutorial          By: shubham bansal at 2015-02-20 12:13:16

7. This solve my problem to use toString() method. Th
View Tutorial          By: Simon at 2009-07-31 08:56:36

8. Thanks to the author, it was really a good tutoria
View Tutorial          By: Ashok Kumar at 2010-04-29 05:54:47

9. to Donovan Aces #61, thank you, I am new to java &
View Tutorial          By: Joe at 2011-09-14 22:40:19

10. Hi,,
I dont have a problem Insert, Update a

View Tutorial          By: Yavuz at 2010-09-01 14:15:02