From d9de40e7f3874899aa2259c9b496f0cd4a3a40ca Mon Sep 17 00:00:00 2001 From: Tonny Date: Mon, 14 Mar 2022 16:55:30 +0200 Subject: [PATCH] Fix grammar errors in Main.java --- Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Main.java b/Main.java index 2255c0a..e27b896 100755 --- a/Main.java +++ b/Main.java @@ -421,7 +421,7 @@ static void deallocate(int rn,int rtype) System.out.println("Empty Already"); return; } - System.out.println(" Do you want to checkout ? (y/n)"); + System.out.println("Do you want to checkout ? (y/n)"); w=sc.next().charAt(0); if(w=='y'||w=='Y') { @@ -458,7 +458,7 @@ static void order(int rn,int rtype) case 4: hotel_ob.deluxe_singleerrom[rn].food.add(new Food(i,q)); break; } - System.out.println("Do you want to order anything else ? (y/n)"); + System.out.println("Do you want to order anything else? (y/n)"); wish=sc.next().charAt(0); }while(wish=='y'||wish=='Y'); } @@ -582,7 +582,7 @@ else if(ch2>0) } catch(Exception e) { - System.out.println("Not a valid input"); + System.out.println("Invalid input"); } } }