EZ Java string question
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]
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement