The java.io package contains nearly every class required to perform input and output (I/O) in Java. All these streams represent an input source and an output destination. The stream in the java.io ...
public class Array { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] arr = new int[5]; System.out.println("Enter 5 elements ...