עמוד:123

return ( name ! = null && name ! = ""); { הגרלת שלושה מספרים if ( rand == null ) { void drawLots () { // יצירת משתנה אקראי } rand = new Random (); // הגרלת מספרים אקראיים n 1 = 1 + rand . nextInt ( DRAW–LIMIT ); // int calculatePoints ( String name ) { } n 3 = 1 + rand . nextInt ( DRAW–LIMIT ); n 2 = 1 + rand . nextInt ( DRAW–LIMIT ); drawLots (); int tempPoints = 2 ; האם שלושת המספרים זהים return tempPoints ; } tempPoints += 2 ; if ( isValidValue ( name )) { } tempPoints = 10 ; if ( n 1 == n 2 && n 2 == n 3 ) { // { % > < div style = "text-align : center" > < br /> < form method = "post" action = "game 4 . jsp" > < body bgcolor = "white" > < link rel = "Stylesheet" type = "text / css" href = "chap 3 . css" /> < title > Game Activity 4 < head id = "Head 1 " > < html >

מטח : המרכז לטכנולוגיה חינוכית


לצפייה מיטבית ורציפה בכותר