I've put the values used to do the calculations in the loop but for the first line of the text file it skips it. Is there a different method I should use instead of nextLine? This is the code:
...
Type: Posts; User: gajen
I've put the values used to do the calculations in the loop but for the first line of the text file it skips it. Is there a different method I should use instead of nextLine? This is the code:
...
This is the result when it executes:
0.0 Celsius is Fahrenheit 57.6
33.3
100.0
-10.0
-273.0
I'm a beginner in Java and I wanted to create a program where I can convert from celsius to fahrenheit but I need to be able to read and process data from a text file also. The text file has 5 lines...