Results 1 to 5 of 5
Thread: HElp
- 04-06-2009, 03:49 AM #1moostico246 Guest
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 );
}
}
-
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?
- 04-06-2009, 03:56 AM #3moostico246 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
- 04-06-2009, 04:00 AM #4
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.
- 04-06-2009, 04:04 AM #5moostico246 Guest


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks