I’m trying to learn how to compile java programs from the command line and I’m getting two errors. Which are bugging me.
DrinkJava.java:
import java.oi.*;
public class DrinkJava
{
public static void main(String args[])
{
System.out.printIn("Do you like to drink java?");
}
}
Then I run the compiler to try and make the class file:
javac DrinkJava.java
and I get this error:
package java.oi does not exist
How do I get that error to go away?
It’s
java.io.*;and notjava.oi.*;. Minor spelling mistake. Updateioinstead ofoi.