5黑马币
最佳答案import java.util.Scanner;
class Test5
{
public static void main(String[] args)
{
//从键盘接收一个字符串
System.out.println("please input String:");
Scanner scn = new Scanner(System.in);
//调用大小写互转的方法,返回后输出
String s = CharTool.toChar(scn.next());
scn.close();
System.out.println(s);
}
}
class CharTool
{
public static String toChar(String stu)
{
Stri ...
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |