import java.util.Scanner; public class WordUp { public static void main(String[] args) { Scanner input = new Scanner (System.in); String word = getWord(input); System.out.println(); System.out.println("Your word is " + word); } public static String getWord(Scanner input) { System.out.print("Enter a word: "); String newWord = input.next(); String firstLtr = newWord.substring(0,1); // chatAt(0) won't work! newWord = firstLtr.toUpperCase() + newWord.substring(1); return newWord; } }