Icon New game New game

Java Programming Syntax Fill in the Blanks

Fill in the Blanks

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

Download the paper version to play

2 times made

Created by

Philippines

Top 10 results

  1. 1
    00:42
    time
    100
    score
Do you want to stay in the Top 10 of this game? to identify yourself.
Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

  1. time
    score
  1. time
    score
time
score
time
score
 
game-icon

Fill in the Blanks

Java Programming Syntax Fill in the BlanksOnline version

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

by pinky tapel
1

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

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