Results 1 to 3 of 3

Thread: (Java)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: May:2010
    Location:
    Posts: 7

    (Java)

    Java.
    :
    public class HelloJava {

    byte centuries = 20;
    short years = 2000;
    int days = 730480;
    long hours = 17531520;

    System.out.println(centuries + " centuries is " + years +
    " years, or " + days+ " days, or " + hours + " hours.");

    }
    :
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    , ( x-) :
    Multiple markers at this line
    -Syntax error on token "println", = expected after this token
    -Syntax error on token(s), misplaced construct(s)
    , .

  2. #2
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    ,



    Code:
    public class HelloJava {
      public static void main(String[] args) {
        //    
      }
    }

  3. #3
    Registered User
    Join Date: May:2010
    Location:
    Posts: 7
    , , . , main . .

    !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |