java – improving instructions, timers and general code in this drinking app?

I want to know how to improve my code.
I started programming a few days ago and I like it, so I'm pretty new to this whole world …

Basically, this app calculates the amount of water you drink in a day. Depending on the user input, the app tells him whether the amount of drunk water is large or not.

Now I want to know how I could improve this whole code?
And I would be grateful for some advice (which I could improve etc.) …

Many thanks. Best regards
Ahmed

Package com.ahmed.everything;
import java.util. *;
import java.util.concurrent.TimeUnit;

public class DrinkingWater {
public static void main (String [] args) raises Exception {
Scanner sc = new scanner (System.in);

System.out.print ("Amount of water your bottle can hold:");
// input quantity of the water bottle can hold
Double liter = sc.nextDouble ();
System.out.print ("How many bottles did you drink today ?:");
// Number of bottles for today
Double bottles = sc.nextDouble ();
// Calculation of water drinking
Double sum = (bottles * liter);

// Result
if (bottles == 1) {
System.out.print ("You only had one bottle today! :(" + " n");
}
otherwise {
System.out.println ("Today you've drunk" + bottles + "bottles, which equals" + total + liter of water. ");
}

// Advice
if (totally < 4) {
        System.out.println("You did not drink enough water, drink at least 4 liters to stay healthy!");
    }

    else if (total >= 4) {
System.out.println ("Good job! You drank enough water today :)");
}
otherwise;


// short period of time
TimeUnit.SECONDS.sleep (1);
System.out.print (".");
TimeUnit.SECONDS.sleep (1);
System.out.print (".");
TimeUnit.SECONDS.sleep (1);
System.out.println (".");
TimeUnit.SECONDS.sleep (1);

System.out.println ("Did you like our little app? Please rate it from 1-5: 1 as very good and 5 as very bad.");
int note = sc.nextInt ();
if (note <= 4 || note >= 1) {
System.out.println ("Thank you for your rating.");
} else {
System.out.println ("That's better, we'll do our best next time");
}

}
}
`` `

Do countdown timers really work?

Hello:

Countdown timers, when used properly, can create a sense of urgency. Make sure the timer does not restart each time the eprsoon opens the email or the source. When time starts over, people will perceive it as a fraud.

However, do not put a countdown timer on everything you send.

Dan

Timers no longer work on HomePod

Since yesterday the Homepod does not accept a timer request, even the simplest "Hey Siri, Timer". In fact, any request with the word "timer" will fail, even if it does not start, poll, or stop a timer.

Any other query that comes to mind will be processed as usual.

I tried removing the plug and reconnecting it after a while, but it made no difference.

Is something obvious missing?

Version is 12.2