Answer:
import java.util.Scanner;
public class Country{
public static void main (String[] args){
Scanner input = new Scanner(System.in);
System.out.print("Input a country name: ");
String country = input.nextLine();
System.out.println("I would love to go to " + country);
}
}
Explanation:
For CH4 is a molecule of methane
C and H are atoms
Answer:
Attend traings
Explanation:
Because if you do you can learn diffent waay to do it and choose your way that you like.
ANd do not obseve poeple who has it easy
Answer:
D) All the mentioned
Explanation:
public: This access modifier allows access from all classes in the program
protected: Means only classes within the same package or sub-classes (inheritance) can access members of the class
No Modifier: Omiting the modifier sets a class to the default. Which implies only classes in the same package can access members of the class.
The given question refers to class members in the same package so any these three access modifiers can be used.