Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: where located my mistake

  1. #1
    Banned
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default where located my mistake

    import javax.swing.*;
    class biodata {
      public static void main(String[]args)	{
      	JOptionPane.showInputDialog (null,"hello");
      	String nama = JOptionpane.showInputDialog (null,"masukkan nama:");
      	String nim = JOptionpane.showInputDialog (null,"masukkan nim:");
      	String kelas = JOptionpane.showInputDialog (null,"kelas:");
      	JOptionPane.ShowMassageDialog(null, "nnama anda adalah "+nama+"\nnim anda adalah"+nim+"\nkelas anda adalah "+kelas);
     
      }
    }


  2. #2
    Member
    Join Date
    Jan 2012
    Location
    Hellas
    Posts
    284
    Thanks
    11
    Thanked 59 Times in 57 Posts

    Default Re: where located my mistake

    Hello erdy_rezki!
    You should be more specific with the problems you have with the above code. But I can see some syntax errors (spelling mistakes).
    Remember that Java is case sensitive - i.e. JOptionPane != JOptionpane
    and also showMessageDialog != ShowMassageDialog
    If you be careful with your spelling the code will compile without any errors.

  3. The Following User Says Thank You to andreas90 For This Useful Post:

    javapenguin (May 26th, 2012)

Similar Threads

  1. Replies: 12
    Last Post: May 8th, 2012, 05:22 PM
  2. I am making a silly mistake but I cant find where! PLEASE HELP!
    By akmi5 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 14th, 2012, 01:44 AM
  3. how come this program only loops twice? wheres my mistake?
    By Rainy in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 3rd, 2011, 09:49 AM
  4. Replies: 2
    Last Post: June 27th, 2011, 11:14 AM
  5. New to Java I need help with a simple mistake
    By Reynalto in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 2nd, 2010, 04:12 PM