I am learning Java currently, and I have learned the basic System.out.println functions, variables, and string/character stuff. Like here is some example stuff I work on:

Code:
class Example1 {
	public static void main(String Args[]) {
		System.out.println("This is the output from Example1");
	
	}
}
Code:
class Trial1 {
	public static void main(String Args[]) {
		System.out.println("This is my test");
		System.out.println("I hope it works");
	}
}
Code:
class DisplayFloat {
	public static void main(String args[]) {
		float price;
		price = 45.35f;
		System.out.print("The Price is ");
		System.out.println(price);
	}
}
Code:
public class OutputVariables {
	public static void main(String args[]) {
		char ch = 'X';
		short s = 456;
		double d = 123.009;
		System.out.println("Ch is " + ch);
		System.out.println("S is " + s);
		System.out.println("D is " + d);
	}
}
--Those are some examples and I also know printing strings and whatnot. But I was wondering a simple question. When you use the:

import _______ function, does that automatically call it or do you have to have it in the directory with the program?