Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.teste;
- public class TesteFill {
- public static void main(String[] args) {
- int[][]valores=new int[6][10];
- for(int i=0;i<valores.length;++i) {
- for(int j=0;j<valores[i].length;j++){
- valores[i][j] = Integer.valueOf(String.valueOf(i)+String.valueOf(j));
- System.out.println("linha " + Integer.toString(i) +" Coluna "+ Integer.toString(j) +" valor " + Integer.toString(valores[i][j]));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment