hi im new here and to java..im supposed to output a receipt that aligns the prices to the right. Since im new, i only know the basics. I was given a clue on how to do this:
Strin someString = "Hello there, kenny.";
int numChars = someString.leng th();
so basically i need to find a way to align prices to the right, keeping in mind the length of the item and and length of the price..any ideas will be most appreciated
Strin someString = "Hello there, kenny.";
int numChars = someString.leng th();
so basically i need to find a way to align prices to the right, keeping in mind the length of the item and and length of the price..any ideas will be most appreciated
Comment