Kimes

Untitled

Oct 25th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1.  
  2. public class Test {
  3.  
  4.     public static void main(String[] args) {
  5.  
  6.         int[] a = new int[100];
  7.         for (int i = 0; i < a.length; i++){
  8.             a[i] = i+1;
  9.             System.out.println(a[i]);
  10.         }          
  11.        
  12.         a[55] = 5000;
  13.        
  14.         for (int i = 0; i <a.length; i++){
  15.             System.out.println(a[i]);
  16.         }
  17.        
  18.                
  19.        
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment