Java Programming Exercises With Solutions - Linode

Write an application that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space.

Part of the document

Write an application that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space.