Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1.  
  2. public class TUebungArray01 {
  3.  
  4.     public static void main(String[] args) {
  5.            
  6.         int [] array = new int[1001];                       // Sorted Array of 100
  7.        
  8.         for (int a = 1; a < array.length; a++) {
  9.             array[a] = a + 1;
  10.             if(array[a] % 2 == 0) {
  11.             }else
  12.             System.out.println(a);
  13.  
  14.         }
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement