I have two files in the same folder 'temp'. One file compiles fine, but for the other the compiler throws "java:13: error: cannot find symbol" for the name of a class in the first file. I don't know how to resolve this, thanks in advance for any help!
Main file, doesn't compile, can't find 'Converter':
package temp;
import temp.*;
/**
* A simple class that uses classes in named packages.
*/
public class TempTable {
/**
* A program that prints out a temperature conversion table
* @param args The command-line arguments
*/
public static void main(String[] args) {
double f = Converter.c2f(0);
// print out headers
System.out.println("Celsius Fahrenheit");
// print out values
}
}
Secondary file, with the class that can't be found:
package temp;
/**
* A simple supplier class that converts temperature values.
*/
public class Converter {
/**
* Converts Celsius to Fahrenheit.
* @param value The Celsius temperature to be converted
* @return The calculated Fahrenheit temperature
*/
public static double c2f(double value) {
return 0;
}
}