title: calculate sum and median by importying csv file in java
body: <pre><code>public class data {
      public static void main(String[] args) {       
          String fileName = &quot;Book1.csv&quot;;// File name is book1.csv
          File file = new File(fileName); // read file
          try{
              Scanner inputStream = new Scanner(file);
              while (inputStream.hasNext()){  // ignore first line
                  String data = inputStream.next();
                  System.out.println(data);
              }
              inputStream.close();
  
          }catch (FileNotFoundException e) {
              e.printStackTrace();
          }}}
   
  </code></pre>
  <p>output</p>
  <p><a href="https://i.stack.imgur.com/IlG8b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IlG8b.png" alt="enter image description here" /></a></p>
  <p>I want to calculate the sum of the values of followers. can you please help me</p>