Hotel Management System - Java Implementation (Small Project)

Preface Program for hotels: hotel management system, simulation of booking, check out, printing all room status and other functions. 1. System User: Hotel Front Desk 2. The hotel uses a two-dimensional array to simulate. 3. Every room in the hotel is a Java object: Room 4. Each room has: number, type, room status 5. Functions that the system s ...

Posted by Holoverse on Wed, 06 Oct 2021 14:21:30 -0700

java foundation --- detailed explanation of keywords

java foundation - detailed explanation of keywords final static this super **final keyword final modifies classes, methods, and variables that are immutable 1.final modified methods cannot be overridden 2. The variable modified by final is a constant. If it is a variable of basic data type, the array will not change once initialized. If ...

Posted by cauchyResidue on Wed, 06 Oct 2021 07:38:11 -0700

Simple use of Eclipse for IDE tools to create a simple Web project

Previously, it was described that running a Servlet in a simple way is possible for a simple project, but not desirable for complex projects. IDE, an integrated development environment, is designed for large projects, facilitates project management, reduces a lot of unnecessary work for programmers, and focuses more attention on core business. ...

Posted by gnize on Fri, 01 Oct 2021 10:16:57 -0700

Use of super keyword and this keyword - system upgrade

If you don't say much, look at the questions first Xiaoming's company is going to upgrade its system recently. The original employee management system has an employee class to manage the employee's name, date of birth, position and other personal information. Now the boss hopes to add a Salary class to manage the employee's Salary. The boss of ...

Posted by jibster on Mon, 27 Sep 2021 04:15:38 -0700

day1.4--java basic syntax

Comments, identifiers, keywords Note: self help writing is a very good habit Single-Line Comments multiline comment Document comments are not executed New Project create a New Project [the external chain picture transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the picture and upload it dir ...

Posted by c815902 on Sat, 25 Sep 2021 03:02:19 -0700

[SSM] use SSM framework to realize data paging management

When writing projects using SSM framework, sometimes the data obtained from the database is too large and will not be displayed in the web page. In order to avoid this situation, data paging can be used to effectively manage data. What's wrong? I hope you guys can correct me! 1. First look at the effect 2. To complete the paging function, it ...

Posted by jonzy on Wed, 22 Sep 2021 01:14:35 -0700

What is written in a class

As we know, classes are the basic elements of Java. A java program is composed of several different classes. The keyword is class and the format is class Class name{ Content of class body } The class body consists of two parts: Declaration of variables and definition of methods variable Format: data type variable name; The variable type ...

Posted by Wolverine68 on Sat, 18 Sep 2021 19:27:04 -0700

The second part of JAVA learning --- method construction

1, Construction method When creating an instance, we often need to initialize the fields of the instance at the same time, for example: Person wang = new Person(); wang.setName("Xiao Wang"); wang.setAge(15); It takes three lines of code to initialize the object instance. Moreover, if you forget to call setName() or setAge(), the internal st ...

Posted by CMellor on Thu, 16 Sep 2021 19:36:37 -0700

Memory area in JVM virtual machine

The running of a program in Java can not be separated from jvm's strict division of memory regions, each region is responsible for its own duties, in order to ensure the correct operation of the program. A flowchart of a program from file to run The memory area in JVM can be divided into five categories. Program counters, virtual machin ...

Posted by astaroth on Sat, 11 Sep 2021 09:04:06 -0700

[Jsp] lesson 1 Introduction and introduction to Jsp network programming

This article uses jdk1.8 version and eclipse to develop the code under the software environment. Beginners should install the environment first. If necessary, please check it [Java] JDK installation and environment configuration [Java] Eclipse installation and J2EE development environment configuration Introduction to Web server } Web S ...

Posted by frenchy373 on Fri, 10 Sep 2021 02:00:55 -0700