Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner sc = new Scanner (System.in);
- int smer = 0; // 0 (sever), 1(vzhod), 2(jug), 3(zahod)
- int stVrstic = sc.nextInt();
- int stStolpcev = sc.nextInt();
- int [][] lab = new int [stVrstic][stStolpcev];
- for (int i = 0; i < stVrstic; i++) {
- for (int j = 0; j < stStolpcev; j++) {
- lab[i][j] = sc.nextInt();
- }
- }
- int stFunkcij = sc.nextInt();
- String [][] funkcije;
- funkcije = new String [stFunkcij][];
- System.out.println("stfunkc " +stFunkcij);
- for (int i = 0; i < stFunkcij; i++) {
- int dolzinaFunkcije = sc.nextInt();
- System.out.println("dolzinafunkcije " +dolzinaFunkcije);
- funkcije [i] = new String [dolzinaFunkcije];
- for (int j = 0; j < dolzinaFunkcije; j++) {
- funkcije[i][j] = sc.nextLine();
- System.out.println("funkcija " + i + " ukaz "+ funkcije[i][j] );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement