Answer:
The code will give an error that is "At least one public class is required in main file".
Explanation:
In the given code if we do not use the public access modifier to the class. It will give an error so, the correct code to this question as follows:
Program:
import java.util.HashSet; //import package
public class A //define class as public.
{
public static void main(String[ ] args) //define main method.
{
HashSet set = new HashSet(); //creating hashset object.
set.add("A"); //add alphabet in hashset
set.add("B"); //add alphabet in hashset
set.add("C"); //add alphabet in hashset
System.out.print("Size of HashSet is :"set.size()); //print the size of hashset.
}
}
Output:
Size of HashSet is : 3
Explanation of the program:
- In the above program, we define a public class that is "A" and inside the class, we define the main method.
- Inside the main method, we create a HashSet class object that is "set".
- To add elements in HashSet we use add() function that adds elements and in the last, we use the size() function that prints the size HashSet.
Answer:
there is no car on a bus a bus is one long vehicle
Explanation:
Answer:
- Auto fill a software function that automatically completes data (like the data that has been entered previously) without the user needing to type it in full.
- The Fill Handle is a feature in Excel that fills the data automatically with a specific pattern in your spreadsheet cell.
hope u liked the answer :)
Answers with Explanation:
A. Give at least two reasons why he believes this.
Friedman believes that health promotion based on Western framework for human development<em> unfairly criticizes the other cultures in the society.</em> Western framework values intellectual and economic achievements alone, which then <em>results to putting a great expense on the other essential human qualities.</em>
B. What crisis does he believe is happening in the most economically developed countries?
The crisis that is happening in the most economically developed country is the <em>devaluing of the other aspects which other human beings value in terms of individuality or families.</em>
C. What does he recommend to improve the programming for adolescent health?
He recommends that if changes were to be implemented for adolescent's health, <u>these have to be properly assessed regarding their effect on the adolescent's development,</u> including his/her family and other social relationships. Next is to check whether<u> it doesn't conflict with the adolescent's culture in the community that he belongs</u>. If it does, then it is essential to change it or find <em>another way which fosters</em><em> </em><em>the same goal.</em>