Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String TextFromFile = "";
- Zadania1 zad = new Zadania1();
- TextFromFile = zad.NacitajObsahZoSubora("C:\\Users\\Ivan\\Desktop\\test.txt");
- String[] pole = TextFromFile.split("(?<=\\])");
- System.out.println("Frist matrica: " + pole[0] +" Second matrica: " + pole[1] +"");
- String[] matrica1 = pole[0].split("(?<=\\;)");
- System.out.println("First Matrica: "+ matrica1[0] +"\n " + matrica1[1] +"");
- String[] matrica2 = pole[1].split("(?<=\\;)");
- System.out.println("Second Matrica:\n "+ matrica2[0] +"\n " + matrica2[1] +"\n "+ matrica2[2] +"");
Advertisement
Add Comment
Please, Sign In to add comment