simple Java programs for daily life solution....
Hotel management program that asks the user to input which type of room you want to stay in the hotel. import java.util.*; public class Main { public static void main(String[] args) { int Room=0,rent=0; Scanner sca=new Scanner(System.in); System.out.println("Enter your choice"); System.out.println("1.FamilyRoom"); System.out.println("2.Single Room"); Room=sca.nextInt(); if(Room==1){ rent=2000; System.out.println("Family Room Rent is "+rent); thanks(); } else if(Room==2){ rent=1000; System.out.println("Single Room Rent is "+rent); thanks(); } else{ System.out.println("You entered wrong number"); thanks(); } } /*method for thanks */ static void thanks(){ System.out.println("===<<><>>==="); System.out.println("Thanks To be Here"); System.out.println("===<<><>>==="); } }