Skip to content

Commit

Permalink
sonar project key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakhammash committed May 13, 2023
1 parent 4534812 commit 63923c7
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class CustomerInvoice {
private String deliveryAddress;
private double totalPrice;
private ArrayList<String> itemsToClean;
final String LINE_SEPARATOR = "=================================";

public CustomerInvoice(String customerName, String customerAddress, String deliveryAddress, ArrayList<String> itemsToClean, double totalPrice) {
this.customerName = customerName;
Expand All @@ -20,23 +21,23 @@ public CustomerInvoice(String customerName, String customerAddress, String deliv
}

public void printInvoice() {
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
System.out.println("CUSTOMER INFORMATION");
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
System.out.println("Customer Name: " + customerName);
System.out.println("Customer Address: " + customerAddress);
System.out.println("Delivery Address: " + deliveryAddress);
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
System.out.println("ITEMS TO CLEAN");
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
for (String item : itemsToClean) {
System.out.println("- " + item);
}
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
System.out.println("TOTAL PRICE");
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
System.out.println("$" + totalPrice);
System.out.println("=================================");
System.out.println(LINE_SEPARATOR);
}

public static void main(String[] args) {
Expand Down

0 comments on commit 63923c7

Please sign in to comment.