Leave it for later

Report a typo

There are also specific comments known as TODO and FIXME. These comments function as reminders or annotations within the source code, providing valuable information to developers about tasks that need attention in the future.

The TODO comment is a marker used to highlight areas of the code requiring further attention or implementation.
Conversely, FIXME comments are used to flag incorrect or problematic code.

Here is an unfinished program with comments. Define where each comment should be added and insert them into the code.

Fill in the gaps with the relevant elements
public class Calculator {
  public static void main(String[] args) {
    int x = 5, y = 2; 

    System.out.println("Sum: " + x + " + " + y + " is " + x + y); 
    System.out.println("Subtraction: " + x + " - " + y + " is " + (x - y));
    
  }
}
// TODO: Add multiplication and division// FIXME: incorrect result for addition// TODO: Read values from user input
___

Create a free account to access the full topic