Please check & correct my code

@nagar123ashish
you are gettting rthe error illegal start of expression.
There are 3 ways in which we can get “illegal start of expression” error.

  1. Missing curly braces
  2. Method inside method
  3. public, protected or private access modifier inside method

refer to this corrected code

1 Like