Category «#100DaysOfCode in Java»

Day5 of #100DaysOfCode Challenge: Factory Pattern in Java

In programming, Factory Pattern can be describe as object builder and one of the best example for this is Vehicle Factory were we will build a vehicle according to ordered type. example: Step 1: Create your abstract Vehicle class and define its properties. You can also use Interface.

Step 2: Create Car vehicle class …

Day4 of #100DaysOfCode Challenge: Sorting the java.util.List

Sorting the items in the list is as simple as below example.

Output: AE G B AE C A — A AE AE B C G