Icon Créer jeu Créer jeu

Java Programming Syntax Fill in the Blanks

Compléter

Test your knowledge of Java programming syntax by filling in the missing elements in Java code.

Téléchargez la version pour jouer sur papier

2 fois fait

Créé par

Philippines

Top 10 résultats

  1. 1
    00:42
    temps
    100
    but
Voulez-vous apparaître dans le Top 10 de ce jeu? pour vous identifier.
Créez votre propre jeu gratuite à partir de notre créateur de jeu
Affrontez vos amis pour voir qui obtient le meilleur score dans ce jeu

Top Jeux

  1. temps
    but
  1. temps
    but
temps
but
temps
but
 
game-icon

Compléter

Java Programming Syntax Fill in the BlanksVersion en ligne

Test your knowledge of Java programming syntax by filling in the missing elements in Java code.

par pinky tapel
1

BufferedReader println in new void close import int System println System readLine parseInt class

java . io . ;
import java . io . IOException ;
import java . io . InputStreamReader ;

public Main {
public static main ( String [ ] args ) {
BufferedReader reader = new BufferedReader ( InputStreamReader ( System . ) ) ;
try {
System . out . ( " Welcome to Java Programming ! You need to use the ENTER key to go to the nextline " ) ;
. out . println ( " This program will let you solve basic math operations such as addition , subtraction , multipilcation and division " ) ;
System . out . ( " Let's begin ! " ) ;

System . out . print ( " Enter First Number : " ) ;
fnum = Integer . parseInt ( reader . ( ) ) ;

System . out . print ( " Enter Second Number : " ) ;
int snum = Integer . ( reader . readLine ( ) ) ;

int sum = fnum + snum ;
int dif = fnum - snum ;
int prod = fnum * snum ;
float qou = fnum / snum ;

System . out . println ( " The sum of " + fnum + " and " + snum + " is " + sum ) ;
System . out . println ( " The difference of " + fnum + " and " + snum + " is " + dif ) ;
System . out . println ( " The product of " + fnum + " and " + snum + " is " + prod ) ;
. out . println ( " The qoutient of " + fnum + " and " + snum + " is " + qou ) ;
reader . ( ) ;

} catch ( IOException e ) {
System . out . println ( " An error occurred while reading input : " + e . getMessage ( ) ) ;
}
}
}

educaplay suscripción