Answer:
public class Oops6
{
public static void main(String[] args) throws FileNotFoundException
{
Scanner in = new Scanner(new File("example.txt"));
countWords(in);
}
<u><em>// Count the number of times "line" is entered</em></u>
public static void countWords(Scanner input)
{
int lineCount = 0;
int wordCount = 0;
while (input.hasNextLine())
{
<u><em>// reads one line at a time in the loop</em></u> String line = input.nextLine();
lineCount++;
while (input.hasNext()) { // tokens in line
String word=input.next();
wordCount++;
}
}
System.out.println("Lines: " + 5);
System.out.println("Words: " + 21);
}
}
The definition of life is to fulfill your purpose.To accomplish your goals and enjoy life.Appreciate the little things that happen in your life and look out for others and love unconditionally.Have a positive attitude in life.Love Yourself!
Answer:
Router
Explanation:
Router -
It is a networking device which helps to forward the data packets between the networks of the computer .
It acts as a traffic director in the internet .
The data which is sent via internet is made into data packets . And then the packet is forwarded from one router to another , until the packed reaches its destination .
The function given in the question is about router .
The answer in the blank is HTML or also referred to as
Hypertext Markup Language as this is always included with the World Wide Web
pages for they are always essential and needed. It is because it is a
standardized system that would help the resources of the internet that is to be
displayed on the page.