Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #36.9K
hello m new here starting java can anyone guide me how ti initilize array of objects in java em receving java.lang.NULL pointer exception ` choice=Integer.parseInt(JOptionPane.showInputDialog(null,"Enter choice"));` Patient pati[]=new Patient[49]; if(choice == 1) { pati[i].setdata(); pati[i].showdata(); count++; } if(choice== 2) { pati[count].update(); pati[count].showup(); } }while(choice!=3); } |