El codigo es:
Código
y
public class TestGreeting { Greeting hello=new Greeting(); hello.greet(); } }
Código
El Error es:
public class Greeting { private void greet() {; } }
TestGreeting.java:3: cannot find symbol
symbol : class Greeting
location: class TestGreeting
Greeting hello=new Greeting();
^
TestGreeting.java:3: cannot find symbol
symbol : class Greeting
location: class TestGreeting
Greeting hello=new Greeting();
^
2 errors
Alguien puede decirme q hago mal o q falta? He comprobado lo del Path y classpath y esta bien.
Gracias a todos