Skip to content
Snippets Groups Projects
Commit 51f90b60 authored by alita's avatar alita Committed by Tahir, Ali (UG - Comp Sci & Elec Eng)
Browse files

Formatted code

parent d2f0af57
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</classpathentry> </classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry exported="true" kind="lib" path="mysql-connector-java-8.0.19.jar"/> <classpathentry exported="true" kind="lib" path="mysql-connector-java-8.0.19.jar"/>
<classpathentry exported="true" kind="lib" path="C:/Users/alita/Downloads/joda-time-2.10.5.jar"/> <classpathentry kind="lib" path="C:/Users/alita/Downloads/joda-time-2.10.5.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
......
...@@ -48,9 +48,7 @@ public class Main { ...@@ -48,9 +48,7 @@ public class Main {
PaymentDAO paymentDAO = null; PaymentDAO paymentDAO = null;
try { try {
if (paymentDAO == null) {
System.out.println("Connection to the database is succesfull\n");
}
paymentDAO = DAOFactory.getPaymentDAO(); paymentDAO = DAOFactory.getPaymentDAO();
System.out.println( System.out.println(
...@@ -76,9 +74,7 @@ public class Main { ...@@ -76,9 +74,7 @@ public class Main {
OrderDAO orderDAO = null; OrderDAO orderDAO = null;
try { try {
if (orderDAO == null) {
System.out.println("Connection to the database is succesfull\n");
}
orderDAO = DAOFactory.getOrderDAO(); orderDAO = DAOFactory.getOrderDAO();
System.out.println( System.out.println(
......
...@@ -170,7 +170,7 @@ public class PaymentDAOImpl implements PaymentDAO { ...@@ -170,7 +170,7 @@ public class PaymentDAOImpl implements PaymentDAO {
out += "customerNumber: " + p.getCustomerNumber() + "\n" + "customerName: " out += "customerNumber: " + p.getCustomerNumber() + "\n" + "customerName: "
+ c.getCustomerName() + "\n" + "contactFullName: " + c.getContactFirstName() + " " + c.getCustomerName() + "\n" + "contactFullName: " + c.getContactFirstName() + " "
+ c.getContactLastName() + "\n" + "amount: $" + c.getContactLastName() + "\n" + "amount: $"
+ NumberFormat.getNumberInstance(Locale.US).format(p.getAmount()) + "\n"; + NumberFormat.getNumberInstance(Locale.US).format(p.getAmount()) + "\n\n";
counter++; counter++;
} }
} }
......
...@@ -105,7 +105,7 @@ public class TestReq2 { ...@@ -105,7 +105,7 @@ public class TestReq2 {
out += ("customerNumber: " + p.getCustomerNumber()) + "\n" + "customerName: " out += ("customerNumber: " + p.getCustomerNumber()) + "\n" + "customerName: "
+ c.getCustomerName() + "\n" + "contactFullName: " + c.getContactFirstName() + " " + c.getCustomerName() + "\n" + "contactFullName: " + c.getContactFirstName() + " "
+ c.getContactLastName() + "\n" + "amount: $" + c.getContactLastName() + "\n" + "amount: $"
+ NumberFormat.getNumberInstance(Locale.US).format(p.getAmount()) + "\n"; + NumberFormat.getNumberInstance(Locale.US).format(p.getAmount()) + "\n\n";
counter++; counter++;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment