正在加载图片...
©终止应用程序的运行。 30 回区 ul it was exit addactionListener(new actionListenero! public void actionPerformed(ActionEvent e) System.exit(0); 五、编程题(本大题共3个小题,40小题4分,41、42小题各6分,共16分) 40、 class Card private String face; private String suit public Card(String f,String s){ face=f. suit s: protected String getSuit retum suit; protected String getFace( return face; public String toStringO return face+"of"+suit; 41、 private void totalHand({ for int h=0;h hand 1.length;h++){ for int f=0;f<faces.length;f++) if hand1[h ]getFace(.equals(faces[f])){ ++numbersl[f ] 42.public synchronized int get(){ String name =Thread.currentThread(.getNameO. while(loccupiedBuffer){ 2 终止应用程序的运行。 39、   exit.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { System.exit(0); } }); 五、编程题(本大题共 3 个小题,40 小题 4 分,41、42 小题各 6 分,共 16 分) 40、 class Card { private String face; private String suit; public Card( String f, String s ) { face = f; suit = s; } protected String getSuit(){ return suit; } protected String getFace(){ return face; } public String toString(){ return face + " of " + suit; } } 41、 private void totalHand() { for ( int h = 0; h < hand1.length; h++ ){ for ( int f = 0; f < faces.length; f++ ) { if ( hand1[ h ].getFace().equals( faces[ f ] ) ) { ++numbers1[ f ]; } } } } 42、public synchronized int get() { String name = Thread.currentThread().getName(); while (!occupiedBuffer) {
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有