Created
November 26, 2017 08:53
-
-
Save mhtmalpani/34c8baaee689df914fe764e362956ebc to your computer and use it in GitHub Desktop.
Builder pattern: Main file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Subway subway = Subway.builder("Wheat", "Grilled") | |
.cheese("Mozzarella") | |
.onion() | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment