Results 1 to 2 of 2
Thread: String and sum int value of char
- 09-20-2012, 02:40 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 13
- Rep Power
- 0
- 09-20-2012, 03:24 AM #2
Re: String and sum int value of char
The compiler is complaining that the caught exception is never thrown in the try block. Why are you trying to catch something that is not thrown?Exception is never thrown in body of corresponding try statement
I don't see where there is anything to return in that method.how to return the resulting characters in a string
Where is the sumOfLastThreeChar method?
You can use arithmetic operators with char variables: 'a' + 4 or 'd' + 'e'If you don't understand my response, don't ignore it, ask a question.
Similar Threads
-
Help with char and string
By mehnihma in forum New To JavaReplies: 13Last Post: 11-01-2011, 11:06 PM -
check a string char by char
By Sotsiak in forum New To JavaReplies: 2Last Post: 10-23-2010, 09:24 PM -
char to string
By kian_hong2000 in forum New To JavaReplies: 2Last Post: 08-25-2008, 01:51 PM -
Help with, String, Char
By lenny in forum New To JavaReplies: 1Last Post: 07-25-2007, 02:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks