Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jedsada-gh/c6bafb77618549dfa275533e7a99e922 to your computer and use it in GitHub Desktop.
Save jedsada-gh/c6bafb77618549dfa275533e7a99e922 to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
private final String TAG = MainActivity.class.getName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Realm.init(getApplicationContext());
for (Student student : StudentManager.getInstance().getStudents()) {
Log.d(TAG, student.getStudentId() + "\n"
+ student.getFirstName() + "\t" + student.getLastName() + "\n"
+ student.getGender() + "\n"
+ student.getAge() + "\n"
+ student.getCity() + "\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment