I do not understand why somebody like you Poopster01 with 5 previous posts decide to make a post as CODE SNIPPET instead of FORUM THREAD? What you been trying to achieve?
Thread edited, now it is FORUM THREAD.
As for your error, you are assigning character at position, if you remove ">" before numeric value, which is illegal, from string Name to integer Index2. However even after removal of that typo there it wouldn't work since you are forcing character into integer.
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
it wouldn't work since you are forcing character into integer.
Are you sure? char is a 16 bit integer, int is a 32 bit integer - assignment should be legal?
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I guess I should keep quite today. To much paracetamol with lemon and honey tea :zzz:
Yes you correct, and lets put it simpler conversion is as char num = Character.toLowerCase(name.charAt(0));
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902