We will declare an integer variable here for our word - counting program that holds the number of words counted by the program 這里我們將為字?jǐn)?shù)統(tǒng)計(jì)程序聲明一個(gè)整型變量,來(lái)保存程序統(tǒng)計(jì)出來(lái)的字?jǐn)?shù)。
This particular code sample enters a loop during execution . a private integer variable is incremented on each iteration of the loop 在執(zhí)行過(guò)程中此特定代碼示例將進(jìn)入循環(huán),其中私有整數(shù)變量在每次迭代后都會(huì)遞增。
Property in a loop to search for all occurrences of the string in the document , and increment an integer variable by 1 each time the string is found 屬性在文檔中搜索該字符串的所有匹配項(xiàng),每次找到該字符串,都將整數(shù)變量的值增加1 。