Sure, avoid calling:
System.out.println()
As the name (somehow) indicates, that prints a whole "line"; ending with a line break.
So, either call System.out.print() multiple times; or better practice: call System.out.println() once, but give all the strings you wanted to be printed to that call.
And as I just saw your comment: you are calling println() - in the line before you call print()!
Given your comment: you have to understand how that scanner works. The scanner reads strings; and by default, line by line.
In other words: when you use nextDouble()
then the scanner assumes that you will enter a string that represents a number - but that your input is "terminated" by the user pressing ENTER. In other words; those line breaks are inevitable!
So, simply deal with them like:
System.out.print("Please enter initial price: ");
double Price = s.nextDouble();
System.out.print("Please enter tip percentage: ");
double TipRate = s.nextDouble();
double TipAmount = (Price*TipRate)/100;
System.out.println("Tip amount: " + TipAmount + " results in Total price: " + (TipAmount + Price) +".");
Long story short: when using the console in/out like this; you can't prevent certain line breaks. Simply accept that, and don't get to much into perfectionism.