What do the import statements at the beginning of files mean?
As an example, this program calculates the total price which includes sales tax:
import java.util.Scanner;
public class SalesTax {
public static void main(String[] args) {
//identifier declarations
}
}
1 Answer
It tells the compiler, that any time you use a Scanner, you mean the one which is located in java.util