System.out.println("Inside loop");
            System.out.println(customer.getCustId());
            System.out.println(customer.getPhone());
            System.out.println(transaction.getCustId());
            if(transaction.getCustId() == customer.getCustId()) {
                System.out.println("Found one transaction");
                System.out.println(transaction);
                filteredTransaction.add(transaction);
            }
        }
This is my code. The values for the fields on if statement are same but still the if statement doesn't get executed.
Here is the output I am getting.
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
Inside loop
446bdfd3-3d09-43e7-83df-1883f967d296
9818122018
446bdfd3-3d09-43e7-83df-1883f967d296
