Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
BufferedReader inFile = new BufferedReader(
new FileReader("schools.txt") );
String line
while (inFile.ready())
line = inFile.readLine();
if (line.length() != 0){
String[] val1 = line.split("\\[");
for (int i = 1; i < val1.length; i++) {
System.err.println(val1[i].replaceAll("]", ""));
}
//getting the second val after the space in [] []
String[] val2 = line.split("\\ [");
for (int k = 1; < val2.length; k++){
System.err.println(val2[k].replaceAll("]"));
}
}
String s = "[Secondary School] [2]";
StringTokenizer st = new StringTokenizer(s, "[]");
while (st.hasMoreTokens()) {
String part = st.nextToken();
if (part.trim().length() != 0) {
System.err.println(part);
}
}