SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
[My Blog]
All roads lead to JavaRanch
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Gopinath Karyadath wrote:hi
try to split the string int two ( sahar30@yahoo.com )
array[0] = sahar30
array[1] = yahoo.com
int val = Integer.parseInt(array[0].substring(s.length()-2) // return val = 30
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
sahar sa wrote:1) in line 10 char can not be dereferenced (I read it happens when we dont set up the pontee rightly, but I did put a value in it. Am I wrong some where?)
2)line 15 and 19 can not find symbol Integer!!(I have already import "import java.lang.Integer;") what is wrong here?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
I have already import "import java.lang.Integer;"
"Quoting yourself is stupid" - Me
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
"Quoting yourself is stupid" - Me
Don't get me started about those stupid light bulbs. |