Test.java
The classname and the filename need to match (case sensitive).
Answer: I would say the first one
Explanation: I have never seen an interactive button for use in autoformatting at least on a presentation
Answer:
import java.util.Scanner;
public class num9 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter year");
int givenYear =in.nextInt();
if(givenYear>=2101){
System.out.println("Distant Future");
}
else if(givenYear>=2001){
System.out.println("21st Century");
}
}
}
Explanation:
- Using Java programming Language
- Import Scanner class to receive user input of the variable givenYear
- Use if statement to check the first condition if(givenYear>=2101)
- Use else if statement to check the second condition if(givenYear>=2001)
- print Distant future and 21st century respectively
The code that is executed when the user clicks a button is known as
the widget (w)
<span>Cystagia from Dynamic Nutritionals is a homeopathic UTI, bladder and kidney support that promotes urinary tract health and function.</span>