Last active
February 7, 2017 13:50
-
-
Save PondThaitay/a7b2bf8e99fc5e2c16a637aa04158cfc to your computer and use it in GitHub Desktop.
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 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