Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int [] myList;
- myList = new int [10];
- int slot = 0;
- for (int i = 0; i < myList.length; i++){
- myList[i] = -113;
- System.out.println("The slot " + slot + " contains a: " +myList[i]);
- slot = slot + 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement