Created
August 10, 2015 07:38
-
-
Save devrath/d424e5a664fb46dafd90 to your computer and use it in GitHub Desktop.
CheckingNullForClassInJava
This file contains hidden or 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
| if (login.getPatient_profile() instanceof PatientProfile){ | |
| System.out.print("--------------->????--Is an intanceOf"); | |
| startMainActivity(true); | |
| } | |
| else { | |
| System.out.print("----nnoooo-------->????--Not an intanceOf"); | |
| startMainActivity(false); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment