Can you please explain in detail what each line of code stands
for in the Main method
import java.util.Scanner;
public class CashRegister {
private static Scanner scanner = new Scanner(System.in);
private static int dollarBills[] = {1, 2, 5, 10, 20, 50,
100};
private static int cents[] = {25, 10, 5, 1};
public static void main(String[] args) {
double totalAmount = 0;
int count = 0;
for (int i = 0; i < dollarBills.length; i++) {
count = getBillCount("How many $"...