I have a char array from string:
public class CharIndexes {
public static void main (String[] args) {
String a = "A good example is the best sermon.";
int len = a.length();
char[] tempA = new char[len] ;
for (int i = 0; i < len; i++) {
tempA[i] = a.charAt(i);
}
}
I need to create 2 strings: a1 from elements [3],[0],[28] and a2 from: [15],[24] and to get a string equal to 'oasis' (i.e. 3,0,28 elements + 15,24):
System.out.println(a1.concat(a2));
What can I do?
tempA[i] =3D- What.. is.. this?tempA[i] = a.charAt(i);?