current location:Home > Technical Articles > Java > JavaBase

  • How to export exe from java
    How to export exe from java
    How to export exe from java: 1. Open the Eclipse project and right-click Export; 2. Select java-Runnable JAR file to export the jar file; 3. Download and install the exe4j software; 4. Select JAR in EXE and configure the jar file path and export path. .
    JavaBase 6832 2019-11-15 10:43:12
  • How to assign value in java
    How to assign value in java
    Java assignment method: The assignment statement in the Java programming language is the "=" sign. For example, assigning the number 1 to a variable can be written as "int a = 1;", and the String type can be written as "String a = "1";"; object You can use "User u1 = new User();".
    JavaBase 18193 2019-11-15 10:25:16
  • How to write constructor in java
    How to write constructor in java
    How to write a java constructor: The constructor needs to meet the following conditions: the function name is the same as the class name, there is no need to write the return value type, and no return statement can be written. For example, "class Demo{Demo(){}}" is a complete constructor.
    JavaBase 7624 2019-11-15 10:09:19
  • What does api mean in java
    What does api mean in java
    API in Java refers to application programming interface. For example: If you want to write a robot program to control the robot to play football, the developer must provide some Java classes for controlling the robot. These Java classes are the interfaces provided for application programming.
    JavaBase 6095 2019-11-15 09:51:01
  • What to do if the java url is Chinese garbled?
    What to do if the java url is Chinese garbled?
    The solution to the Chinese garbled URL: first, the client uses encodeURI twice to encode the URL when passing the value; then the server obtains the parameters through request.getParameter; finally, the server uses URLDecoder.decode to decode the parameters.
    JavaBase 3369 2019-11-15 09:46:18
  • What does the '<<' symbol in java mean?
    What does the '<<' symbol in java mean?
    The << symbol in Java represents a logical left shift, and 0 is added to the right. The sign bit needs to be moved like other bits. For example: Calculating 3<<2 means shifting the number 3 to the left by 2 places. It should be noted that this process is performed in binary.
    JavaBase 11178 2019-11-15 18:05:23
  • Garbled characters appear when opening java files in eclipse
    Garbled characters appear when opening java files in eclipse
    The solution to the garbled code when opening a java file in eclipse: 1. First check the encoding of the java file; 2. Enter the eclipse property settings page; 3. Select the content types option; 4. Modify the file encoding to utf-8; 5. Clear the project compilation document.
    JavaBase 4462 2019-11-15 09:22:07
  • How to execute tasks regularly in java
    How to execute tasks regularly in java
    How to implement java timing: first create a Timer object timer and a TimerTask object task; then use "timer.schedule(task, 3000L);" to implement the scheduled task.
    JavaBase 5036 2019-11-14 16:41:36
  • How to package Java
    How to package Java
    Java packaging method: 1. Use javac to generate class files; 2. Create a new file and enter Manifest and other information; 3. Put the first two files into the same folder; 4. Run "jar -cvfm main.jar manifest -C in cmd test." can be packaged.
    JavaBase 12517 2019-11-14 16:23:44
  • java prompts insufficient permissions
    java prompts insufficient permissions
    Solution to the problem that java prompts that the permissions are insufficient: 1. Use Xshell to connect to the server; 2. Use the command whereis java to find the java path; 3. Use the command "chmod +x java path" to add execution permissions to java.
    JavaBase 6890 2019-11-14 16:03:29
  • java determines whether a file exists in a folder
    java determines whether a file exists in a folder
    How to determine the existence of files in a folder in java: first use the File class to create a file object; then use the file.list method to obtain the file list under the folder and store it in the filelist array; finally, obtain the array length based on filelist.length and determine if the length is greater than 0 File exists.
    JavaBase 5817 2019-11-14 15:50:51
  • What are the methods in java
    What are the methods in java
    Java methods include: 1. General methods; 2. Construction methods; 3. Methods without parameters and return values; 4. Methods with parameters and return values; 5. Static methods; 6. Non-static methods; 7. Abstract methods, etc.
    JavaBase 6693 2019-11-14 15:28:56
  • How to convert string into character array in java
    How to convert string into character array in java
    How to convert a string into a character array in java: Use the String.toCharArray() method to convert a string into a character array, for example "char ss[] = str.toCharArray()" to convert str into a character and save it in the ss array inside.
    JavaBase 61694 2019-11-14 15:07:59
  • How to recurse in java
    How to recurse in java
    Java recursion requires three conditions, 1. Boundary conditions, 2. Recursive forward section, 2. Recursive return section. When the boundary conditions are not met, the recursion advances; when the boundary conditions are met, the recursion returns.
    JavaBase 4756 2019-11-14 14:50:13
  • How to paginate in java
    How to paginate in java
    Java paging method: 1. Create a Page class, which stores the number of pages currently visited and the number of rows displayed on each page; 2. Calculate the required data through paging; 3. The front end uses jsp to combine the calculated data with html elements. Just show it.
    JavaBase 4750 2019-11-14 14:29:35

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!