DINO_CH

Untitled

Dec 10th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. package br.teste;
  2.  
  3. public class TesteFill {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         int[][]valores=new int[6][10];
  8.          for(int i=0;i<valores.length;++i) {
  9.             for(int j=0;j<valores[i].length;j++){
  10.                 valores[i][j] = Integer.valueOf(String.valueOf(i)+String.valueOf(j));
  11.                 System.out.println("linha " + Integer.toString(i) +" Coluna "+ Integer.toString(j) +" valor " + Integer.toString(valores[i][j]));
  12.             }
  13.          }
  14.     }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment