Results 21 to 29 of 29
Thread: What did i do wrong this time!
- 01-19-2009, 07:47 AM #21
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
- 01-19-2009, 07:51 AM #22
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
AS a rule the code should be placed in the final end of the if statement :)else{
System.out.println(a +","+ b +","+ c +","+"The input not valid.");
}
- 01-19-2009, 07:51 AM #23
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
But you have it in the middle
- 01-19-2009, 07:53 AM #24
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Your statement declaration is wrong.
Should be like thisJava Code:System.out.println("error is: "+e)
Java Code:System.out.println("error is: "+e);
- 01-19-2009, 08:00 AM #25
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
why don't you use || instead of && I think it may be a logical error because I think that ((a + b > c) cannot be at the sane time (a + c > b) and at the same time (b + c > a)if ((a + b > c) && (a + c > b) && (b + c > a)){Last edited by Webuser; 01-19-2009 at 08:08 AM.
- 01-19-2009, 05:22 PM #26
Member
- Join Date
- Jan 2009
- Posts
- 90
- Rep Power
- 0
that is not the problem that part works
my problem is the accending part which is the last part of the program
- 01-19-2009, 11:32 PM #27
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
- 01-19-2009, 11:34 PM #28
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
if you don't know where to put ";" how can you really know that the problem is in the last part of the program
- 01-19-2009, 11:47 PM #29
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
Similar Threads
-
What did i do wrong
By jpnym15 in forum New To JavaReplies: 8Last Post: 11-17-2008, 10:07 AM -
what's wrong in here!!!
By Annatar in forum New To JavaReplies: 8Last Post: 11-14-2008, 02:55 AM -
So, what am I doing wrong?
By Charles_Smith in forum New To JavaReplies: 0Last Post: 10-29-2008, 02:50 PM -
right or wrong
By jot321 in forum New To JavaReplies: 7Last Post: 09-25-2008, 11:45 AM -
i click on it,then first time error page comes,second time click then product page co
By 82rathi.angara in forum New To JavaReplies: 21Last Post: 08-01-2008, 11:13 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks