'calculate sum and median by importying csv file in java
public class data {
public static void main(String[] args) {
String fileName = "Book1.csv";// 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();
}}}
output
I want to calculate the sum of the values of followers. can you please help me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

