ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
??????????????????? ??????#1 ?.6/2 ?????2
??????????????????? ??????#1 ?.6/2 ?????2
1
true)
false)

Relatoonal

Operators )
??????????????????? ??????#1 ?.6/2 ?????2
AND , OR , Exclusive-OR
NOT

NOT
AND

AND
OR

OR

true

true
true

true
NOT

NOT
Exclusive-OR

Exclusiv
e-OR

false

false
true

true
Operators)
AND, OR,
NOT
AND

OR
NOT

-

AND
OR
NOT
Exclusive-OR

Exclusive
-OR

-

-

-

-

-
??????????????????? ??????#1 ?.6/2 ?????2
( ) , ( data
type )
-( ) , ( data type )
--

-

-
??????????????????? ??????#1 ?.6/2 ?????2
2
statement)

if
if statement)
if

If(condition) {action statement}
??????????????????? ??????#1 ?.6/2 ?????2
3

if-else )

if-else )
if
if
if-else
if
else
if
??????????????????? ??????#1 ?.6/2 ?????2
4

if-else-if

if-else-if
if-else

else
if
if-

else-if

if-else
??????????????????? ??????#1 ?.6/2 ?????2
??????????????????? ??????#1 ?.6/2 ?????2
5

switch

switch
if-else
switch..case
switch

if-else
switch
switch..case
NOTE ¡­¡­.
switch

case
case
6

for

for
for

loop for

initialization)

condition
loop control variable )
initial value)
update
comma
number
number
, , ,¡­
A¡¯,¡¯B¡¯,¡¯C¡¯,
7

Nested Loops)

Public class Nestedloop1 {
Public static void
main(String[ ] args)
{
for(int i = 1; i < = 3;
i ++)
for(int j = 1; j < =
3; j ++)
System.o
I
j
System.out.print (j+ ¡° ¡°)
8

break

continue

for

for , do/while

switch
break
while , for

break
while ,
continue
do/while
continue
continue
while , for , do/while
switch
break
while , for

continue
do/while
continue
continue
logic error
??????????????????? ??????#1 ?.6/2 ?????2

More Related Content