<Scanner inputFile = new Scanner(myFile);
while (inputFile.hasNext())
{
interest = inputFile.nextDouble();
years = inputFile.nextInt();
amount = inputFile.nextDouble();
...
Type: Posts; User: neliJav
<Scanner inputFile = new Scanner(myFile);
while (inputFile.hasNext())
{
interest = inputFile.nextDouble();
years = inputFile.nextInt();
amount = inputFile.nextDouble();
...
I'm having trouble with my code.
I have a text file with the following input
99.99 67 178843.00
87.4 3 8983.00
how do i read these input and store them in separate variables?...
I'm Neli and i'm new to java programming.