Quantcast
Channel: Finding the average of certain numbers out of a text file - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>