Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.        
  6.         int [] numbers = new int [10];
  7.  
  8.             for (int i=0; i<numbers.length;i++) {
  9.                 numbers[i] = -113;
  10.             System.out.println("Slot " + i + " contains a " + numbers[i]);   }
  11.  
  12.  
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement