You can do something like this :
Scanner sc = new Scanner(System.in);
int[] nums = new int[4];
for(int i = 0; i < nums.length; i++) {
System.out.println("Enter next number: ");
nums[i] = sc.nextInt();
<u>Client-server</u> implemented a network where hosts are assigned specific roles, such as for file sharing and printing. Other hosts access those resources but do not host services of their own.
<u>Explanation:</u>
The client-server can be utilized on the web just as on a neighborhood (LAN). Instances of customer server frameworks on the web incorporate internet browsers and web servers, FTP customers and servers, and the DNS. Different hosts get to those assets yet don't have administrations of their own. Since it permits arrange permits numerous PCs/gadgets to interface with each other and offer assets.
<span>Applications
on the Android OS are written in JAVA programming language. JAVA Programming
language is considered one of the most popular and used programming language by
mostly developers. JAVA was developed in the year 1995. In order to make an
Android app, the programmer should know the programming language by heart.</span>