current location:Home > Technical Articles > Java > JavaBase

  • How to create a form in java
    How to create a form in java
    The method of creating a form in java is: 1. First determine what elements the form has; 2. Import the [JFrame] package and set a title for the form in the construction method (all form settings are written in the construction method); 3. Then set the size and position of the form; 4. Set the closing method for the form; 5. Finally, set the display method for the form.
    JavaBase 3944 2019-12-18 14:18:06
  • javaweb project cannot be started
    javaweb project cannot be started
    The solution to the problem that the javaweb project cannot be started is: 1. First check the project error, such as missing jar package, incorrect maven warehouse, wrong jdk version, wrong spring configuration file, etc.; 2. Check the tomcat server, remove and reconfigure it; 3. Check Whether it meets the web project structure requirements.
    JavaBase 4731 2019-12-18 14:18:32
  • The picture of the project accessed under the url in java is not displayed
    The picture of the project accessed under the url in java is not displayed
    The solution to the problem that the project image is not displayed when accessing the project under the URL in Java is: 1. In the [img] tag, it is recommended to access the specific path of the project starting from the project name; 2. If the browser directly accesses the project, you first need to check the actual Check whether the deployed container contains the image, and then check whether the image under the path is generated.
    JavaBase 3173 2019-12-18 11:15:50
  • How to view java source code in IDE
    How to view java source code in IDE
    The method to view the java source code in the IDE is: 1. First click [Menu], [Preferences], [java], [Install jre], select your jre, and click [Copy]; 2. Then click [rt .jar] file, select the resource attachment option; 3. Select [External Local] and add [src.zip].
    JavaBase 4136 2019-12-18 11:01:26
  • Java garbled question mark solution
    Java garbled question mark solution
    The garbled question mark in Java may be caused by the fact that the backend returns a json object, and the one passed to the frontend is a string type. We can change the return value to a json object to solve the problem.
    JavaBase 4055 2019-12-17 16:06:40
  • Java text garbled solution
    Java text garbled solution
    Solution to garbled java text: You can use the "new String(garbled variable.getBytes("original encoding format"),"current encoding format");" code to solve the problem of garbled characters when using Scanner to type data and use the get method to send requests.
    JavaBase 3266 2019-12-17 15:49:36
  • Java submission garbled code solution
    Java submission garbled code solution
    Solution to garbled code submission in java: 1. Submit in post mode and use the setCharacterEncoding method to set the encoding method. 2. When submitting in get mode, you can manually convert the encoding format after receiving the data.
    JavaBase 2374 2019-12-17 14:54:13
  • Conversion problem between parent class and subclass in java
    Conversion problem between parent class and subclass in java
    This article uses the Java Quick Start column to introduce the conversion problem between parent classes and subclasses in Java. I hope it can help students who are confused about this issue. There is no way to force the conversion of parent class objects into subclasses in Java, but subclass objects can be converted into parent classes.
    JavaBase 3751 2019-12-17 11:55:54
  • How to read and write files in java to avoid garbled characters
    How to read and write files in java to avoid garbled characters
    Methods to avoid garbled characters when reading and writing files in java: 1. Read bytes in the character set specified by the file through the InputStreamReader class and decode them into characters. 2. Encode the characters written into bytes using the specified character set through the OutputStreamWriter class.
    JavaBase 2357 2019-12-17 11:04:03
  • Java method to determine whether a string is json
    Java method to determine whether a string is json
    You can use the JSONObject.parseObject() method in java to process strings. If an exception occurs when processing the string, it means that the string is not in json format.
    JavaBase 4634 2019-12-16 16:52:00
  • Java method to determine whether a string is an integer
    Java method to determine whether a string is an integer
    How to determine whether a string is an integer in Java: 1. Use the isDigit() function to determine whether all characters in the string are numbers. 2. Use regular expressions to judge. 3. Determine whether the string is an integer by using the ASCII codes of all characters in the string.
    JavaBase 2945 2019-12-16 16:33:09
  • Solution to garbled file name of java download file
    Solution to garbled file name of java download file
    Solution to the garbled file name of Java downloaded files: Use different methods to encode the downloaded file name according to different browsers. IE and Edge browsers use the encode() method, and other browsers use the byte stream transcoding method.
    JavaBase 2178 2019-12-16 16:11:35
  • How to determine if strings are not equal in Java
    How to determine if strings are not equal in Java
    In Java, if a string is not equal, you can use the equals() method. The equals() method is used to compare a string with a specified object. Returns true if the given object is equal to the string; false otherwise.
    JavaBase 11341 2019-12-16 14:17:55
  • How to intercept the last few characters of a string in java
    How to intercept the last few characters of a string in java
    To intercept the last few characters of a string in Java, you can use the substring method of the String class. There are two ways to use it: one is to intercept all characters at the specified position of the string and beyond. One is to intercept characters at the specified start and end positions.
    JavaBase 14197 2019-12-16 14:10:06
  • Java learning switch statement and loop statement
    Java learning switch statement and loop statement
    This article introduces the switch statement and loop statement with examples from the java zero-based introduction column. I hope it can help students who are learning java. The switch statement is used to determine whether a variable is equal to a value in a series of values. Each value is called a branch.
    JavaBase 2485 2019-12-16 12:01:02

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!