?? breakexample.java
字號:
class BreakExample{
public static void main(String[] args) {
int[] arrayOfInts={32,87,3,589,10,76,2000,8,622};
int searchfor=589;
int i=0;
boolean foundIt=false;
for(i=0;i<arrayOfInts.length;i++)
{
if(arrayOfInts[i]==searchfor)
{
foundIt=true;
break;}
}
if(foundIt)
{
System.out.println("Found"+searchfor+"at index of"+i);
}
else{
System.out.println("not found it in the array");
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -