Printer, starting with a capital letter, is most likely a class name. So when you reference its field out, out must be a public static field. And the field out refers to some object that has a write(String) method.
What do you have to write to make all of that true? Take a shot at a beginning, even if it's only a line or two. Then we'll know exactly where you're stuck.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I try this for string output in my program using Printer.out.write instead of System.out.println.
Now i will try for as in java program we import java.lang.*(i know its automatically imported) same way i want to import package so without writing this code again & again, i can directly use Printer.out.write. means if anybody want to see my java file he/she cannot find System.out.println statement.