填空题

程序流程图中的菱形框表示的是______。

【参考答案】

逻辑判断
<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面程序 public void test() { try{ sayHello(); System.out.println( hello ); } catch(ArrayIndexOutOfBoundException e) { System.out.println( ArrayIndexOutOfBoundException ); } catch(Exception e) { System.out.println( Exception ); } finally { System.out.println( finally );} } 如果sayHello()方法正常运行,则test()方法的运行结果将是
A.Hello
B.ArraylndexOutOfBondsException
C.Exception  Finally
D.Hello  Finally
单项选择题
下面程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是 public class FindKeyWords{ public static void main(String[]args) { String text= An array is a data structur that stores a collection of + values of the same type. You access each indMdual value + through an integer index. For example,if a is an array + of inergers,then a[i]is the ith integer in the array. ; int arrayCount=0; int index=-1; String arrayStr= array ; index=text.indexOf(arrayStr); while(index>=0) { ++arrayCount; index+=arrayStr.length(); index=text.indexOf(arrayStr,index); } System.out.println( the text contains +arrayCount+ arrays ); } }
A.<
B.=
C.<=
D.>=
相关试题
  • 表达式(10 * 49.3)的类型是__...
  • 在Java语言中,用______修饰符定义的...
  • Swing中用来表示工具栏的类是javax.swing...
  • 代码System.out.println(066)的输出...
  • 抛出异常的语句是______语句。