Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-24-2012, 01:41 AM   PM User | #1
dannyboi
New Coder

 
Join Date: Jul 2012
Location: NYC
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
dannyboi is an unknown quantity at this point
Need help with this code?

package javaapplication11;



import javax.swing.JOptionPane;
public class HelloApp{



public static void main(String[] args) {

Also, there seems to be something wrong with the JOptionPane but I can't figure it out

{

JOptionPane.showMessageDialog
(null, "Hello, World!", "Greeter"
JOptionPane.INFORMATION_MESSAGE);

}

}
}

It absolutely refuses to compile. I have no idea what to do next.

Last edited by dannyboi; 07-25-2012 at 08:25 PM..
dannyboi is offline   Reply With Quote
Old 07-24-2012, 02:04 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,657
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Don't forget to post your error messages as well.
You're missing a comma. I'd remove those excess curly braces as well as they can become annoying to follow.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Tags
java

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:45 PM.


Advertisement
Log in to turn off these ads.