fork download
  1. class Main {
  2. public static void main (String[] args) {
  3. int vet[] = { 3, 7, 6, 1, 9, 4, 5 };
  4. for (int i = 0; i < vet.length; i++) if (vet[i] == 3) System.out.println(i);
  5. }
  6. }
  7.  
  8. //https://pt.stackoverflow.com/q/430383/101
Success #stdin #stdout 0.09s 32276KB
stdin
Standard input is empty
stdout
0