Results 1 to 5 of 5

Thread: HElp

  1. #1
    moostico246 Guest

    Default HElp

    make a Swing version of the Monogram program::::

    /* This program finds a persons Monogram
    Programmer: your name
    Date: March 31, 2009


    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
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    You know, if you took all the time that you spend chatting with us here and spent it actually studying Java, you'd already know how to do the programs that you're trying to create. So why not hit a book or two?

  3. #3
    moostico246 Guest


    i dont know how to do it, i tried, but no luck..i can show u wat i have so far, can u help

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Cambridge, UK
    Rep Power


    That would be a start, but first you'll have to remove all your duplicate posts: we're only going to help in one place.

  5. #5
    moostico246 Guest


    if u give me the code, ill juss delete all the posts and rolll outa here and move on with my life

Posting Permissions

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