Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25
  1. #21
    fonso gfx is offline Member
    Join Date
    Mar 2009
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by AlejandroPe View Post
    C:\MisJavas>java Talnamn
    Exception in thread "main" java.lang.NoSuchMethodError: main

    The compiler is telling you that you need a main method to test your class.

    Java Code:
    public static void main(String [] args){
    }

  2. #22
    vijayabaskar is offline Member
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    0

    Default

    hi thank you.. just now only i know about scanner.. again thanks for ur new information

  3. #23
    AlejandroPe's Avatar
    AlejandroPe is offline Member
    Join Date
    Mar 2009
    Posts
    37
    Rep Power
    0

    Default

    Do you mean "translating" a number name into a number? Is that what parseInt does?

  4. #24
    AlejandroPe's Avatar
    AlejandroPe is offline Member
    Join Date
    Mar 2009
    Posts
    37
    Rep Power
    0

    Default

    My teacher wants me to do this program as an Applet,:mad:
    Do I need anyway the main() method?

  5. #25
    AlejandroPe's Avatar
    AlejandroPe is offline Member
    Join Date
    Mar 2009
    Posts
    37
    Rep Power
    0

    Thumbs up Finish

    I could finally do the codes for this program, thanks to everyone in this thread. I'll start another thread with this same program but with other question(s).:D

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Control if it is a input
    By Torgero in forum New To Java
    Replies: 2
    Last Post: 03-11-2009, 12:14 AM
  2. Replies: 1
    Last Post: 11-03-2008, 02:38 PM
  3. Creating a Number Input Dialog in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 07:53 PM
  4. input placed in array
    By smilejava in forum New To Java
    Replies: 5
    Last Post: 11-12-2007, 07:29 AM
  5. how to take input and verify input in Java programs
    By bilal_ali_java in forum Advanced Java
    Replies: 0
    Last Post: 07-21-2007, 08:46 AM

Posting Permissions

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