I know I'm probably being dumb here but I cannot seem to compile a java bean. Here is my code:
package beans;
import java.sql.*;
public class example
{
public void test()
{
out.println("The bean worked");
}
}
I get the error:
example.java:5: class Example is public, should b
ple.java
public class Example
^
example.java:9: cannot find symbol
symbol : variable out
location: class beans.Example
out.println("The bean worked");
^
Thanks for your help