????otSpot????????????JVM???????Java??Scala???????????????檔????????????ε???????????????????????????????????????????е?????Ч??????????????????????

????????????????JIT(Just-In-Time)????????JIT?????????????????????????????????????HotSpot????????к?????????????

????JIT???????????????

??????????????е????JVM??????????е???????????????????????????????????????????(?????1??ε???)??JIT????????????“???л?????”????????????????????????????????????汾??

??????Щ????????????????????????????????????????????????????滻???????????????JIT?????????????????????о????????Щ???????????????

??????????

????????????????????д????

????StringBuilder sb = new StringBuilder("Ingredients: ");

????for (int i = 0; i < ingredients.length; i++) {

????if (i > 0) {

????sb.append("?? ");

????}

????sb.append(ingredients[i]);

????}

????return sb.toString();

??????????????

????boolean nemoFound = false;

????for (int i = 0; i < fish.length; i++) {

????String curFish = fish[i];

????if (!nemoFound) {

????if (curFish.equals("Nemo")) {

????System.out.println("Nemo! There you are!");

????nemoFound = true;

????continue;

????}

????}

????if (nemoFound) {

????System.out.println("We already found Nemo!");

????} else {

????System.out.println("We still haven't found Nemo : (");

????}

????}