subject

Complete LineCountAnalyzer. java:
Screenshots of code:
* LineCountAnalyzer: this class maintains a count of the number * of lines of text. Only lines of length>0 are counted. publi
public String getReportstr() { return null;
Copyable code:
/*
* LineCountAnalyzer: this class maintains a count of the number
* of lines of text. Only lines of length>0 are counted.
*/
public class LineCountAnalyzer implements TextAnalyzer {
//TODO1: write the rest of this class. Declare any instance variables you need
// and implement the TextAnalyzer methods.
// Hint: You will need a variable to count with and a String Array
/* Implement analyzeData:
* Count the lines of length > 0.
*/
public void analyzeData(String[] textData){
}
/*
* Implement getResultData:
* Returns an array with data from the result of the analysis.
* In this case, there will be one value in this array- the line count.
* Note the array is of type String, so an int must be
* converted to a String before it can be placed on the array.
*/
public String[] getResultData(){
return null;
}
/* Implement getReportStr:
* For e. g. if the count was 250, then return the line count as a String in this format:
* "Number of non-blank lines: 250"
*/
public String getReportStr(){
return null;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
The hybrid uses 144 to 158 volt batteries.
Answers: 1
You know the right answer?
Complete LineCountAnalyzer. java:
Screenshots of code:
* LineCountAnalyzer: this class m...
Questions
question
Mathematics, 26.06.2021 23:50
question
Mathematics, 26.06.2021 23:50