I was asked by the question to set the mark to 0 if it is more than 10 ... this is my question : " to A practical mark should not be more than 10. If the mark given is invalid, the practical mark should be set to 0." can anyone help me how to set it ???

```
 public void setPractical(double practical_mark)
{
    Scanner read = new Scanner(System.in);
    System.out.println("Enter the practical_mark");
    practical_mark =read.nextDouble();
  if ( practical_mark>10)
  {
      practical_mark = 0;                                                                 
  }   
}

```