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.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
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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

    Default

    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
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    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

    Default

    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
  •