Skip to content

Instantly share code, notes, and snippets.

View wordhulhasan's full-sized avatar
🏠
Working from home

Wordh Ul Hasan wordhulhasan

🏠
Working from home
View GitHub Profile
@wordhulhasan
wordhulhasan / java-Optionals-examples.md
Last active November 20, 2019 09:53
Java Optional Api Examples

Data Set

    private List<Wizards> getWizards(){
        return List.of(
                new Wizards("Gryfindor","phoenix feather core","Half Blood","Male","Harry Potter"),
                new Wizards("Gryfindor","unicorn hair core","Pure Blood","Male","Ronald Wisely"),
                new Wizards("Gryfindor","dragon heart string core","Mud Blood","Female","Hermione Granger"),
                new Wizards("Slytherin","unicorn hair core","Pure Blood","Male","Draco Malfoy"),
                new Wizards("Ravenclaw","unicorn hair core","Pure Blood","Male","Cedric Diggory")