PACKAGEdeskclock转大写字串
时间: 2023-08-07 21:25:27 浏览: 44
将字符串PACKAGEdeskclock转换为大写可以使用Java中的toUpperCase()方法,例如:
```
String str = "PACKAGEdeskclock";
String upperCaseStr = str.toUpperCase();
System.out.println(upperCaseStr); // 输出:PACKAGEDESKCLOCK
```
相关问题
TimerGatewayActivity转大写字串
同样地,将字符串TimerGatewayActivity转换为大写可以使用Java中的toUpperCase()方法,例如:
```
String str = "TimerGatewayActivity";
String upperCaseStr = str.toUpperCase();
System.out.println(upperCaseStr); // 输出:TIMERGATEWAYACTIVITY
```
StopwatchActivity转大写字串
抱歉,这个问题似乎和我之前提到的话题没有关联。不过回答你的问题,将字符串转换为大写可以使用Java中的toUpperCase()方法,例如:
```
String str = "StopwatchActivity";
String upperCaseStr = str.toUpperCase();
System.out.println(upperCaseStr); // 输出:STOPWATCHACTIVITY
```