第五章第四十八题(处理字符串)(Process string)
- *5.48(处理字符串)编写一个程序,提示用户输入一个字符串,显示奇数位置的字符。
下面是一个运行示例:
Enter a string: Beijing Chicago
BiigCiao
*5.48 (Process string) (Process string) Write a program that prompts the user to enter a string and displays the characters at odd positions.
Here is a sample run:
Enter a string: Beijing Chicago
BiigCiao - 参考代码:
package chapter05;
import java.util.Scanner;
public class Code_48 {
public static