Computer Science, asked by ALIAKBAR007, 1 year ago

how to make space in JAVA program

Answers

Answered by brianydon
2
lFor example, in a monospaced font, the character "i" takes up the same amount of space as the character "m." Running Java programs in ...
Answered by deepshika1512
1
hey your answer is here.,❤❤ ote6down votefavorite

1

This is the code I am working with.

public void displayCustomerInfo() { System.out.println(Name + Income); }

I use a separate main method with this code to call the method above:

first.displayCustomerInfo(); second.displayCustomerInfo(); third.displayCustomerInfo();

Is there a way to easily add spaces between the outputs? This is what it currently looks like:

Jaden100000.0 Angela70000.0 Bob10000.0

java




ALIAKBAR007: THANKS A LOT
ALIAKBAR007: friend
ALIAKBAR007: i am going to mark it as brainlist
ALIAKBAR007: as you need
ALIAKBAR007: its oooook
ALIAKBAR007: U hepl me
ALIAKBAR007: i help U
Similar questions