Esempio:
Ciao.codice:try { BufferedReader br = new BufferedReader( new FileReader("nomefile") ); String linea = br.readLine(); separaStringa(linea); } catch (Exception e) { e.printStackTrace(); } ... private void separaStringa(String linea) { StringTokenizer st = new StringTokenizer(linea, ","); int i = 0; while (st.hasMoreTokens()) { System.out.println("Token numero " + i + ": " + st.nextToken()); i++; } }![]()