countOddLength

Category: Line-Based File Processing
Author: Stuart Reges
Book Chapter: 6.3
Problem: countOddLength
  Write a static method called
   countOddLength that takes a Scanner containing an input file as a parameter
   and that reports to System.out the total number of lines in the file, the
   total number of odd-length lines and the percentage of odd-length lines.
   For example, given the following input file:

        This line has odd length because it is 57 characters long
        This line is even because it is 40 long.

        another even (68 characters) along with the blank line above with 0.
        another odd line here
        and one final even
	
   Two of these input lines have odd length and there are six lines total, so
   your method should print the following output:

        Total lines = 6
        odd length = 2
        percent = 33.333333333333336

   You are to exactly reproduce the format of this output.  You may assume that
   the Scanner contains at least one line.

   Write your solution to countOddLength below.