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.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();

    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
    Rep Power


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

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

  3. #3
    moostico246 Guest


    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