Ok first time poster here so please post any pointers on posting and any help in general. I'm very new to Java programming but I started this way with C++ and love it, I hope I can do the same with Java.
So my problem is that I'm trying to create a program that will collect the first and last name of a user, convert to all lower case letters, and put it in a generic email format (firstname.lastname@waketech.edu).
Troubles I'm having are that I can't get the user input to ask and collect the input. I don't know where to put the .toLowerCase().
import java.util.Scanner; public class EmailGenerator { /** * This method is to grab the users input and convert to all lower case letters * and put in an email address with given host. * * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner firstName = new Scanner (System.in); System.out.print("Enter your first name: "); System.out.println(firstName); Scanner lastName = new Scanner (System.in); System.out.print("Enter your last name: "); System.out.print(lastName); System.out.print(firstName); System.out.print(lastName); System.out.println("@waketech.edu"); } }