hi..im new here and to java...im supposed to align the prices of a receipt in a system.out.println..and i dont kno how. i am supposed to align the prices on the right hand side, considering the length of the item name and length of price. Again, i dont use things such as print streamline ( i dont even know what that means) I was given a clue here and i'll put it down:
String someString = "Hello there, Kenny."
int numChars = someString.length()
so this basically counts the number of characters in the string. However, i dont know how to use this effectively because the items the user inputs are unlimited. (im not sure if im supposed to use a loop or statement)
IF ANYONE CAN HELP ME, IT'LL BE MOST APPRECIATED:-|