Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package student;
- /**
- *
- * @author Ayoub
- */
- public class Point {
- String [] name;
- int [] points;
- public void SetPoint(String [] sName,int [] sPoint)
- {
- this.name = sName;
- this.points = sPoint;
- for(int x = 0; x < this.name.length; x++)
- {
- System.out.println("The Student name is : " + this.name[x] + " - and there Point is : " + this.points[x]);
- }
- }
- public void ShowResult()
- {
- System.out.println("-----------------------------------------------------------");
- for(int x = 0; x < this.name.length; x++)
- {
- if(this.points[x] >= 10){
- System.out.println("The Student : " + this.name[x] + " is successful" );
- }else if(this.points[x] <= 9){
- System.out.println("The Student : " + this.name[x] + " must to Repeats Year" );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement