Answer:
a solution to the problem
Explanation:
In organizing his text, the move taken by some cities to help their citizens make better choices will fall into the part where he lists or proffers solutions to the excessive intake of soda and sugary drinks by people. Prior to this part, he might begin by explaining what the problem is, and including data that shows the impact of this problem in the society.
When concluding the text, he may now include details of how the government has intervened in remedying the situation.
Answer:
Code is given below:
Explanation:
import java.io.*;
import java.util.*;
import java.util.Scanner;
class Solution {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
ArrayList<String> ans = new ArrayList();
System.out.println("(a) ADD THREE NAMES: ");
for(int i=0;i<3;i++)
{
ans.add(in.next());
}
System.out.println("(b) NUMBER OF ELEMENTS: " + ans.size());
System.out.println("(c) ADD TWO MORE NAMES : ");
for(int i=0;i<2;i++)
{
ans.add(in.next());
}
System.out.println("(d) PRINT ALL NAMES: ");
for(int i=0;i<ans.size();i++)
{
System.out.println(ans.get(i));
}
System.out.println("(e) ENTER A NAME TO REMOVE: ");
ans.remove(in.next());
for(int i=0;i<ans.size();i++)
{
System.out.println(ans.get(i));
}
}
}
where is the table & where is the statement