Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Emergency! please help!

807600Nov 20 2007 — edited Nov 20 2007
            public void minresult(){
            	
    			int currentMin = 4;
    			int minClass = 0;
    			for (Student s : classList) {
    				for (int i = 0; i < s.result.length; i++) {
    					if (s.result.gradePoint != -1 && s.result[i].gradePoint < currentMin) 
minClass = s.result[i].gradePoint;
}



}System.out.println(minClass +"TEst test");
} //end method()
When I call this method it does not return any results, I think im calling it at the right place but its always 0, my assignments in today, and I need to make this work ):

Please anyone help!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2007
Added on Nov 20 2007
17 comments
269 views