java

profileMohsin

when I input data more then 10 integers it will display them all in one line how can I make it 10 number per one line?

 

import java.util.Scanner; 

public class Main{ 
public static void main(String args[]){ 

Scanner input = new Scanner(System.in); 
System.out.print("Please Enter A Vaule Of 'N' "); 
String inputString = input.nextLine(); 
System.out.print("N = : "); 
System.out.println(inputString); 

}

    • 11 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED