PDA

View Full Version : Quick easy Java Program Help?


Caterpillar
11-10-2009, 04:00 PM
Write a program that will ask a user to input their name and the output will be their name skipping every other letter. So an input such as Aime Marshall will output Am asal

Badajoz
11-11-2009, 02:01 AM
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter your name:");
String name = scanner.nextLine();

for(int i=0; i