Results 1 to 4 of 4
Thread: Can someone please help here
- 04-05-2009, 10:59 AM #1moostico246 Guest
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 );
}
}
- 04-05-2009, 03:41 PM #2
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
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 04-06-2009, 02:15 AM #3moostico246 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.
- 04-06-2009, 03:40 AM #4moostico246 Guest


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks