Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change value of string within an array?

807603Nov 25 2007 — edited Nov 26 2007
Alright, so im trying to change "hello" to "Aello", there fore im changing the first letter of the string to an "A". This string is within an array:

This is what i have:

System.out.println ((char)split[1].charAt(0))='a');

but im getting an error

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 24 2007
Added on Nov 25 2007
10 comments
101 views