Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class arrays{
- public static void main(String[] args){
- System.out.println("Index\tValue");
- int array[] = {21,653,2,76,90};
- for(int counter = 0; counter < array.length; counter++){
- System.out.println(counter + "\t" + array[counter]);
- }
- }
- }
Add Comment
Please, Sign In to add comment