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 3 of 3

Thread: PLEASE HELP ME .. IS URGENT

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PLEASE HELP ME .. IS URGENT

    I need help in my program .. I've been told I have to add the method but I dont know how to do that.

    also I have to add a picture, but I dont know how.
    import javax.swing.JOptionPane;
     
     
     
     
    public class WordGameProyect {
     
     
     
    	public static void main(String[] args) {
     
            {
            	String name;
                name= JOptionPane.showInputDialog("Escriba un nombre.");
     
                String tienda;
                tienda= JOptionPane.showInputDialog("Escriba el nombre de una tienda de ropa.");
     
                String artículo;
                artículo= JOptionPane.showInputDialog("Escriba un accesorio personal");
     
                String nombre;
                nombre= JOptionPane.showInputDialog("Escriba otro nombre.");
     
                String sentimiento;
                sentimiento= JOptionPane.showInputDialog("Escriba un sentimiento.");
     
                String str= "Un 24 de dieciembre " + name + " fue para el centro comercial. \n"
                + "Entró a la tienda " + tienda +
                " y compró un/una "+ artículo +".\n"+ name
                +" pensó en regalarselo a su amiga/o "+nombre+" .\n"+
                "Luego de un largo día, " + name + " fue a su casa a descanzar \n"+
                " y poner todo en orden para la fiesta.\n" +
                " Al otro día por la tarde, " + nombre + " fue para la casa de " +name+ ".\n"+
                nombre + " sentía muy "+ sentimiento +" por el regalo.\n"
                + name +  " y " +nombre + " disfrutaron y pasaron juntos todo el día de navidad. \n";
                JOptionPane.showMessageDialog(null, str);
     
     
     
     
     
     
                }
            }
        }
    Last edited by helloworld922; December 18th, 2010 at 04:29 PM.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,330
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: PLEASE HELP ME .. IS URGENT

    First, please do not post the same question more than once to the forums. Your other post has been removed. Second, please flank your code with the [highlight=java][/highlight] or [code][/code] tags (I have edited your post to reflect this). Third, writing in large fonts and marking your thread as urgent will not get you help any sooner. Lastly, suggested reading: How to Ask Questions.

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: PLEASE HELP ME .. IS URGENT

    Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    I have no idea what you mean by adding a picture, but I suggest looking at BufferedImage (Java Platform SE 6)

Similar Threads

  1. Urgent!!!!!!!!!!!!!!!!
    By dinesh03188 in forum JDBC & Databases
    Replies: 3
    Last Post: May 14th, 2010, 01:38 AM
  2. Urgent Help Please :)
    By Jamie94 in forum Algorithms & Recursion
    Replies: 0
    Last Post: May 12th, 2010, 06:34 AM
  3. HELP URGENT!!
    By macx234 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 30th, 2010, 08:41 PM
  4. Urgent Help
    By pb60704 in forum Web Frameworks
    Replies: 7
    Last Post: December 1st, 2009, 02:27 AM
  5. Replies: 1
    Last Post: May 4th, 2009, 06:30 AM