public void averge(){
		int grade;
		int totalgrade;
		int averagegrade = 0;
		int counter;
		counter=0;
		totalgrade=0;
		grade=0;
		Scanner s = new Scanner(System.in);
		System.out.println("Enter the grade or -1 to quit:");
		grade=s.nextInt();
		while(grade!=-1){
			totalgrade=totalgrade+grade;
			System.out.println("Enter the grade or -1 to quit:");
			grade=s.nextInt();
			
			counter++;
			
		}
		
		 
		System.out.println("Total:"+totalgrade);
		 
	   if(counter!=0)
	   {
		   averagegrade=totalgrade/counter;
		   System.out.println("Average:"+averagegrade );
		   
	   }
	   else{
		   System.out.println("No enter the grade"  );
	   }
	
	}