Quantcast
Channel: Finding the average of certain numbers out of a text file - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Jacob B. for Finding the average of certain numbers out of a text file

My first comment is you might want to take some lessons. This is pretty basic stuff. But to answer your question, use a while loop, with an if/else statement inside, to get proper input. For your next...

View Article



Finding the average of certain numbers out of a text file

Here is my code:import java.util.Scanner;import java.io.File;import java.io.FileNotFoundException; public class QuestionTwo{public static void main(String[] args) throws FileNotFoundException {...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images