Skip to content

Instantly share code, notes, and snippets.

@gitaficionado
Created November 6, 2019 13:45
Show Gist options
  • Save gitaficionado/d65cd9f851f8d8fcd4aff5c4bb27b4f3 to your computer and use it in GitHub Desktop.
Save gitaficionado/d65cd9f851f8d8fcd4aff5c4bb27b4f3 to your computer and use it in GitHub Desktop.
(Process string) Write a program that prompts the user to enter a string and dis-plays the characters at odd positions
import java.util.Scanner;
public class ProcessStringExercise_05_48 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter a string: ");
_________________________________________
Create a for loop that will look for each odd letter in the string.
System.out.println();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment