&& 在开关的情况下如何使用?我想将此 if-else 转换为 switch-case。请帮帮我,我尝试了很多选项,但没有一个起作用。
if( bpay <= 90000 && bpay >= 85000 )
{
System.out.println("You Job is General Manager");
}
if( bpay <= 84999 && bpay >= 75000 )
{
System.out.println("Your Job is Manager" );
}
if ( bpay <= 74999 && bpay >= 65000 )
{
System.out.println("Your Job is Assistant Manager ");
}
if ( bpay <= 64999 && bpay >= 55000 )
{
System.out.println("Your Job is Accoutant");
}
if( bpay <= 54999 && bpay >= 40000 )
{
System.out.println("Your Job is Clerk");
}
if( bpay < 40000 )
System.out.println("You Job is Security Incharge");
小唯快跑啊
Qyouu
繁花不似锦
精慕HU
相关分类