java car rental system code
Sketch
The first year of college. java car rental system code
Operation result:
Console:
The above is the overall implementation effect.
Analysis
I store the car as an array:
public class Car {
String[ ] name = new String[50];
int[ ] state = new int[50];
String[ ] date=new String[50];
...
Added by adrianl on Thu, 30 Apr 2020 22:58:10 +0300
Using PhotoView to view pictures
The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it.
Introducing PhotoView
Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView.
1. Conf ...
Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300
Fastlane automated packaging notes
Install fastlane
github warehouse: https://github.com/fastlane/fastlane
fastlane official website: https://docs.fastlane.tools/
fastlane actions: https://docs.fastlane.tools/actions/
A configuration document: https://www.jianshu.com/p/0a113f754c09
Upload to dandelion: https://www.pgyer.com/doc/view/fastlane
An example of a custom lanes group: h ...
Added by stc7outlaw on Thu, 30 Apr 2020 12:03:09 +0300
A good paging plug-in of Mybatis com.github.pagehelper
1. Need to import the jar package of PageHelper
If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github,
Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.
If maven is used, the plug-in can be introduced in pom.xml as fol ...
Added by Arnerd on Wed, 29 Apr 2020 18:57:15 +0300
Recommend a better HTTP(S) proxy server than fiddlecore
Original text:
Recommend a better HTTP(S) proxy server than fiddlecore
Why not Fiddler core?
When it comes to Fiddler core, you may not be familiar with it, so its brother Fiddler is familiar with it. I usually use it to grab packets, simulate low bandwidth, and modify requests. Fiddler is essentially an HTTP proxy server. FiddlerCore is ...
Added by Valdhor on Tue, 28 Apr 2020 12:22:48 +0300
LeetCode 33. Search rotation sort array
My LeetCode: https://leetcode-cn.com/u/ituring/
My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii
LeetCode 33. Search rotation sort array
subject
Let's say that the array sorted in ascending order is rotated at a pre-known point.
(for example, the array [0,1,2,4,5,6,7] may change to [4,5,6,7,0,1,2]).
Search a given ta ...
Added by Miker on Tue, 28 Apr 2020 08:50:43 +0300
gorm series - Update
Catalog
Gorm update operation
Update all fields
Update modified fields
Update selected fields
No Hooks updates
Batch update
Update with SQL expression
Modify values in Hooks
Other update options
Gorm update operation
Update all fields
Save() updates all fields of the object by default, even if you don't have an assignment.
package main
im ...
Added by deft on Mon, 27 Apr 2020 18:54:52 +0300
cropper crop picture and canvas composite picture
Before you can crop a composite picture, you first need to understand canvas and cropper.
canvas
1. Create a node first: var c=ocument.createElement("canvas"); and
2. Create a drawing environment for c: var ctx = canvas.getContext("2d");
3. You can set the width and height: canvas.width=330; canvas.height=440 (see how bi ...
Added by crowezr on Sun, 26 Apr 2020 19:31:39 +0300
Jquery plug-ins (commonly used plug-in libraries)
With the end of Jquery knowledge points, I also began to touch the framework.
At the beginning, I always hear the words "plug-in" and "framework". I wonder what's the difference between framework and plug-in? "??
There are countless plug-ins. Any function in a web page can be called a plug-in. It can be extracted separa ...
Added by sdlyr8 on Sat, 25 Apr 2020 20:18:05 +0300
Building Unity game framework 2019 (30, 31) MenuItem display order problem & Class extraction
In the previous article, we have come up with two core learning ideas:
According to the problem to learn, and collect.
Take the initiative to learn and think about the applicable scenarios.
Let's solve the problem of MenuItem display order today.
At present, MenuItem is shown as follows:
Let's take a look at the definition of MenuItem. ...
Added by billynastie on Fri, 24 Apr 2020 09:06:02 +0300