I just want continue a program when end user press y key with do while loop in this code plz help me .. While('o'!=='y') also tried this : public class clac{
do{
     
    System.out.println("\nwant to try again\n press y/n");
    String o;
    o=sc.next();
  }while(!o.contentEquals("y"));
}