{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

FaveFive - array[3]=4 array[4]=5 System.out.println(array[0...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; public class FaveFive { static Scanner console = new Scanner(System.in); public static void main(String[]args) { int a; int[] array = new int[5]; array[0]=1; array[1]=2; array[2]=3;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: array[3]=4; array[4]=5; System.out.println(array[0]); System.out.println(array[1]); System.out.println(array[2]); System.out.println(array[3]); System.out.println(array[4]); }}...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online