Advertisement
Blonk

Untitled

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