Method setCharAt(int index, char ch)
Return type: void
Member of: java.lang.StringBuffer
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 result.setCharAt(0, Character.toUpperCase(result.charAt(0)));
2 name.setCharAt(3,Character.toUpperCase(propName.charAt(0)));
3 buffer.setCharAt(0, '\n');
4 sb.setCharAt(ind,'c'); //Explorer's "Classes" to FS "classes"
5 newname.setCharAt(0, Character.toUpperCase(name.charAt(0)));
6 sb.setCharAt(0, Character.toUpperCase(sb.charAt(0)));
7 for (int j=0;j
8 workString.setCharAt(0, Character.toUpperCase(workString.charAt(0)) );
9 passTwo.setCharAt(ENTRYLINE_TENS_DAY_OFFSET, ' ');
10 key.setCharAt(0, c);
11 buff.setCharAt(0, Character.toLowerCase(c));
12 supplementary.setCharAt(0, XMLChar.highSurrogate(c));
13 buf.setCharAt(c.getName().length(), '.');
14 s.setCharAt(len - 1, '0');
15 s.setCharAt(len - 1, '0');
16 sb.setCharAt( 3 , Character.toUpperCase( c ) );
17 number.setCharAt( i, '0' );
18 buffer.setCharAt(pos, File.separatorChar);
19 buf.setCharAt(i, ' ');
20 chars.setCharAt(countr - i, chars.charAt(countr));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.