Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Hotel-Management-Project-Java</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
15 changes: 13 additions & 2 deletions Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,19 @@ class holder implements Serializable

class Hotel
{
static holder hotel_ob=new holder();
static Scanner sc = new Scanner(System.in);

private static Hotel s_hotel=null;
private static holder hotel_ob;
private static final Scanner sc = new Scanner(System.in);

private Hotel() {}

public static Hotel getHotel() {
if(s_hotel==null)
s_hotel=new Hotel();
return s_hotel;
}

static void CustDetails(int i,int rn)
{
String name, contact, gender;
Expand Down