arabera Huy Thong Cao 4 years ago
275
Honelako gehiago
StatementWothoutTrailingSubStatement
ExpressionSatement
System.out.printf("%d is in %s at %d", x, a, isAt);
search(a,x)
TextIo.getInt()
VariableDeclaration
VariableDeclaratorList
{1, 1, 2, 3, 5, 8, 13}
UnannReferenceType
FormalP
args
UnannRefenrenceType
UnannArrayType
UnannTypeVariable Dims
String[]
main
return -1
BasicForStatementNoShortIf
IfThenStatement
return i
RelationalExpression
x == a[i+0]
ForUpdate
StatementExpressionList
StatementExpression
UnaryStatement
i++
RelationalExperssion
Forlnit
VariableInitializer
0
VariableDeclaratorld
FomalParameters
x
Iderntifier
a
UnannReferenceTypr
UnannArrayTyoe
UnannPrimitiveTypeDIms
int[]
JavaLetters
Javaletter
search
StattementWithoutTrailingSubstatement
IfThenElseNoShortIfStatement
min=b
StatementNoshortIf
min =a
StatementWithoutTrailingSubstatement
ReturnStatement
return min
ConditionalExpression
:b
Expression
?a
ConditionalOrExpression
a<=b
VariableDeclarator
identifier
min
LocalVariableDeclaration
'b'
Formal Parameter
'a'
UnnaType
NumbericType
Identifier Chars
Java Letter Or Digis
'i','n'
Java Letter
'm'
Statement Without Trailing Substatement
Return Statement
return j
Local Variable Declarationbtopic
Variable Declarator List
Variable Intializer
i+1
Variable Declaratorld
j
Uann Peimitive Type
Formal Parameters
Variable Declarator
i
UnannPrimitiveType
Numberic Type
Identifier chars
Java letter
nextCount
Task 2
FormalParameters
FormalParameter
VariableDeclaratorId
... "a"
UnannType
Subtopic
int []
IdentifierChars
{JavaLetterOrDigit}
“n”
“i"
JavaLetter
“m”