|
|
back to board(JAVA) Crash on 2 import java.util.Scanner; public class Magician { public static void main(String[] args) { Scanner in = new Scanner(System.in);
int digitos = in.nextInt(); int cliques = in.nextInt(); String saida = ""; String parte2 = "";
for (int i = 1; i <= cliques; i++){ saida += in.nextInt(); }
for (int i = cliques+1; i <= digitos; i ++){ parte2 += in.nextInt(); } parte2 += saida;
System.out.println( parte2.substring(0,10) ); } } I can't see, why its crashing |
|
|