AND COMPLETE SOLUTIONS VERIFIED
GRADED A+
◉ MAIN METHOD. Answer: there will be a main method in all repl.it
code. Greenfoot uses the World class to run your code. There is no
GUI in repl.it, so it starts execution from the main method:
public static void main(String[] args)
◉ IMPORT STATEMENTS. Answer: found at the top of a file, above
the class and imports packages (with classes) that are not standard
in java... like import java.util.Scanner
◉ SCANNER CLASS. Answer: includes methods, such as: next,
nextInt, nextDouble, nextLine
◉ CREATING A SCANNER OBJECT. Answer: Scanner objects are used
for inputting data.
◉ KEYBOARD INPUT. Answer: the Scanner class is used to input data
from the keyboard with System.in
, ◉ OUTPUT. Answer: System.out.println and System.out.print create
output to the screen in repl.it
◉ System.out.printIn. Answer: prints text on a line and at the end
advanced to the beginning of the next line
◉ System.out.print. Answer: prints text on a line and keeps the
cursor at the end of the line after the text prints
◉ ESCAPE CHARACTERS. Answer: \\ prints 1 backslash, \" prints a
", \t prints a tab, \n moves to the next line
◉ LINE COMMENTS. Answer: start with // and from there to the end
of the line is not compiled
◉ BLOCK COMMENTS. Answer: tart with /* and goes till */ and the
text inside is not compiled
◉ ALU. Answer: Arithmetic Logic Unit
◉ CPU. Answer: Central Processing Unit
◉ DOS. Answer: Disc Operating System