DINO_CH

Untitled

Jan 30th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. package br.teste;
  2.  
  3. public class CampeonatoJudo {
  4.  
  5.     public static void main(String[] args) {
  6.         String[]campeonatos= {"brasileiro", "panamericano", "Olimpico"};
  7.         String[]competidores= {"Jorge", "Roberta","Ana","Maria","Rafaela"};
  8.         int  []soma= new int[4];
  9.         int[]nota_Jorge= {4,4,4,4};    
  10.         int[]nota_Roberta= {5,5,5,5};  
  11.         int[]nota_Ana= {6,6,6,6};  
  12.         int[]nota_Maria= {7,7,7,7,};   
  13.         int[]nota_Rafaela= {8,8,8,8};
  14.         int[][]nota_Competidores= {nota_Jorge,nota_Roberta,nota_Ana,nota_Maria,nota_Rafaela};
  15.        
  16.         for(int i=0;i<nota_Competidores[i].length;i++){
  17.             for(int j=0;j<nota_Competidores[i].length;j++){
  18.                
  19.                  nota_Competidores[i][j]= nota_Competidores[i][j]+1;
  20.                 System.out.println(nota_Competidores[i][j]);
  21.             }
  22.             System.out.println("=============end=============");
  23.                
  24.             }
  25.         }
  26.        
  27.        
  28.  
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment