Search:

Type: Posts; User: dannyboi

Search: Search took 0.11 seconds.

  1. I included the main method, but it keeps flashing that I don't have one included?

    package javaapplication11;


    if (taxRate > 0)
    public static void main (String [] args);

    {
    double taxAmount;
    taxAmount = subTotal * taxRate;
    total =...
  2. Replies
    7
    Views
    1,843

    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;
  3. Replies
    7
    Views
    1,843

    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()
  4. Replies
    7
    Views
    1,843

    What is wrong with this code?

    package javaapplication11;



    public class HelloApp2 {
    {
    public static void main (String [] args)
    {
    Greeter myGreeterObject = new Greeter () ;
    ...
  5. Replies
    5
    Views
    1,379

    Re: What is wrong with my code?

    Ok then, I get the "message" part, but still I get:public class HelloApp
    {
    public static void main(String [] args)
    {
    helloMessage = "Hello, World!" ;
    System.out.println(helloMessage);


    }...
  6. Replies
    5
    Views
    1,379

    What is wrong with my code?

    I am a very new beginner, I mean I almost seriously started yesterday. I have the Java All In One For Dummies 9 Books In One , and in the first book, but I am confused. If there is anybody out there...
Results 1 to 6 of 6