Advertisement
thenewboston

Java Programming Tutorial - 28 - Creating an Array Table

Aug 22nd, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. class apples{
  2.    public static void main(String[] args){
  3.       System.out.println("Index\tValue");
  4.       int buck[]={32,12,18,54,2};
  5.  
  6.       for(int counter=0;counter<bucky.length;counter++){
  7.          System.out.println(counter + "\t" + bucky[counter]);
  8.       }
  9.    }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement