正在加载图片...
日回☒ Font Exit 点击菜单项“Sz”后,弹出下图所示的文本输入对话框,输入一个整数后回 车,将改变文本区中文字的大小为该整数。 入 ?字号大小 25 酸消 五、编程题(本大题共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; return face+"of"+suit: 41 m Hand( if( e.equals( aces[f])){ 42 public synchronized int get({ String name=Thread.currentThread().getName() while (occupied Buffer) try System err.println(name 2 点击菜单项“Size”后,弹出下图所示的文本输入对话框,输入一个整数后回 车,将改变文本区中文字的大小为该整数。 五、编程题(本大题共 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) { try { System.err.println( name
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有