答:switch(expr1)中,expr1是一个整型,字符或字符串,因此可以作用在byte和long上,也可以作用在string上。

相关文章:

  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-02-24
  • 2021-11-27
  • 2021-12-24
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-07-18
相关资源
相似解决方案