kunal acharya

Greenhorn
+ Follow
since Jun 03, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kunal acharya

i think the problem is custid is string reference variable(for storing reference of string object) and you are comparing with string object"0".
use custid.equals("0") instead of custid=="0"
7 years ago
ok...let me share my doubt in just one line:
s.charAt(0) is throwing outofbound exception even i have not initialized string s from standard input.
7 years ago


now ,the problem is last two lines are throwing outofbound exceptions,even before inititalizing string s.Any suggestions???
Thank you:)

[Fixed the code tags. Again. See UseCodeTags for details.]
7 years ago