RoyZxc
public class StringToUpperCase {

public static void main(String[] args) {

String s = "Hello World";

System.out.println(s);
System.out.println(s.toUpperCase());
}
}
同理s.toLowerCase()可以把大写转小写

分类:

技术点:

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-08-06
  • 2022-01-09
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-01-13
猜你喜欢
  • 2021-08-04
  • 2021-11-26
  • 2021-11-20
  • 2021-09-24
  • 2022-02-05
  • 2022-02-26
相关资源
相似解决方案