EZ Java string question

Started by
3 comments, last by derek6433 20 years ago
I'm a noob at Java, and need to know how to change an individual character within a String class.. There's probably a simple function i'm overlooking. Anyways, thanks in advance. [edited by - derek6433 on March 24, 2004 1:09:06 AM]
Advertisement
quote:From java.lang.String:
Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings.
okay, so now i'm trying to use a char array, but I can't get that to work either.


char saArrary[] = new char[10];
saArray[0] = 'h';

I get the following error..
"IO.java [39:1] cannot resolve symbol
symbol : variable saArray "


Help please?




[edited by - derek6433 on March 24, 2004 9:43:24 AM]
have a look here:

http://www.ling.ohio-state.edu/~kcohen/javaStringHandling.html
quote:Original post by algol
have a look here:

http://www.ling.ohio-state.edu/~kcohen/javaStringHandling.html


oh geez, there''s a whole other class for string buffers.. thank you.

This topic is closed to new replies.

Advertisement