Results 1 to 4 of 4
  1. #1
    moostico246 Guest

    Default Can someone please help here

    Make a Swing version of your Monogram program. Use all pop-up dialogs; no printing to the screen or reading from it.

    import java.util.Scanner;

    public class Monogram {
    public static void main (String[]args) {
    //declare vars
    String first, middle, last, monogram;
    Scanner input = new Scanner (System.in);

    System.out.println("Enter your first name: ");
    first = input.nextLine();
    System.out.println("Enter your middle initial: ");
    middle = input.nextLine();
    System.out.println("Enter your last name: ");
    last = input.nextLine();
    input.close();

    monogram =String.valueOf(first.charAt(0)).toLowerCase()+Str ing.valueOf(middle.charAt(0)).toUpperCase()+String .valueOf(last.charAt(0)).toLowerCase();
    System.out.println("your monogram is "+monogram );

    }
    }

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default

    Don't multi post the same question in the forum and this is not an advanced Java question. It has already been answered:

    i need help here..now, da quicker da better

    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    moostico246 Guest

    Default

    okay, well dis really looks like a simple program, but i dont get it, can someone start me off here and stop making smart comments.

  4. #4
    moostico246 Guest

Posting Permissions

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