current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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
- 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 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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 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
- 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
- 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
- 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