Search:

Type: Posts; User: dannyboi

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,841

    I have no idea why "class or interface is expected" , or the main method is missing?

    public static void main (String [] args)
    {
    package javaapplication11;



    public class HelloApp
    {
    static String helloMessage;
  2. Replies
    7
    Views
    1,841

    The compiler says the main method does not show up here, what is wrong?

    package javaapplication11;



    import javax.swing.JOptionPane;

    public class Greeter
    {

    public void sayHello()
  3. Replies
    7
    Views
    1,841

    What is wrong with this code?

    package javaapplication11;



    public class HelloApp2 {
    {
    public static void main (String [] args)
    {
    Greeter myGreeterObject = new Greeter () ;
    ...
Results 1 to 3 of 3