Skip to content

Instantly share code, notes, and snippets.

@ashishkudale
Last active May 13, 2018 11:47
Show Gist options
  • Save ashishkudale/6d2aff39df8abb005a7fa237d1318ff8 to your computer and use it in GitHub Desktop.
Save ashishkudale/6d2aff39df8abb005a7fa237d1318ff8 to your computer and use it in GitHub Desktop.
prepareData method with few data. Only for showing blog
private ArrayList<Subject> prepareData() {
ArrayList<Subject> subjects = new ArrayList<Subject>();
Subject physics = new Subject();
physics.id = 1;
physics.subjectName = "Physics";
physics.chapters = new ArrayList<Chapter>();
Chapter chapter1 = new Chapter();
chapter1.id = 1;
chapter1.chapterName = "Atomic power";
chapter1.imageUrl = "http://ashishkudale.com/images/phy/atoms.png";
Chapter chapter2 = new Chapter();
chapter2.id = 2;
chapter2.chapterName = "Theory of relativity";
chapter2.imageUrl = "http://ashishkudale.com/images/phy/sigma.png";
physics.chapters.add(chapter1);
physics.chapters.add(chapter2);
subjects.add(physics);
return subjects;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment