How to take 4 integer inputs from one line as said in this question

How to take 4 integer inputs from one line every time i use Scanner i have to move to the next line to the enter the next integer

HI @Gahan-Kundra-2849258371791711,
enter the numbers seperated by a space … Space is also treated as newLine when using nextInt() with scanner variable. Ex :- you can enter space seperated input as 10 12 13 … THis will be equivaluent to
10
12
13