热门

最新

红包

立Flag

投票

同城

我的

发布
qq_64580912
允歆辰丶
4 年前
trueqq_64580912

if(p instanceof Architect)
{if(numberOfArchitect==1)
throw new TeamException("团队中至多只能有一名架构师");}
else if(p instanceof Designer) {
if(numberOfDesigner==2)
throw new TeamException("团队中至多只能有两名设计师");}
else if(p instanceof Programmer) {
if(numberOfProgrammer==3)
throw new TeamException("团队中至多只能有三名程序员");}
和
if(p instanceof Architect&&numberOfArchitect==1)
throw new TeamException("团队中至多只能有一名架构师");
else if(p instanceof Designer&&numberOfDesigner==2)
throw new TeamException("团队中至多只能有两名设计师");
else if(p instanceof Programmer&&numberOfProgrammer==3)
throw new TeamException("团队中至多只能有三名程序员");
的意思居然不一样

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
帮帮孩子吧,这个怎么用python整出来
立即登录