Posts by tpcordeiro • 111 points
1 post
-
1
votes3
answers145
viewsA: Save character by character within an array
int var[] = new int[conteudo.size()]; for (String str : conteudo) { String[] split = str.split(" "); var[Integer.parseInt(split[0])] = Integer.parseInt(split[1]); }
javaanswered tpcordeiro 111