This grid shows the state of a 2D array:
The grid is created with this code:
Which line of code, when inserted in place of //line n1, adds an X into the grid so that the grid contains three consecutive Xs?
You are developing a banking module. You have developed a class named ccMask that has a maskcc method.
Given the code fragment:
You must ensure that the maskcc method returns a string that hides all digits of the credit card number except the four last digits (and the hyphens that separate each group of four digits).
Which two code fragments should you use at line n1, independently, to achieve this requirement? (Choose two.)
Given this class:
And given this main method, located in another class:
Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?
Given the code fragment:
Which code fragment, when inserted at line 3, enables the code to print 10:20?