while(yn = "y"){ // this is there my loop starts
The while statement requires a boolean value inside of the ().
Your code has an assignment statement inside of the ()s that evaluates to a String.
...
Type: Posts; User: Norm
while(yn = "y"){ // this is there my loop starts
The while statement requires a boolean value inside of the ().
Your code has an assignment statement inside of the ()s that evaluates to a String.
...
Please post the code that created the error message.
Use the equals method to compare Strings, not the == operator.