current location:Home > Technical Articles > Java > JavaBase

  • Solution to the problem that java eclipse cannot be opened
    Solution to the problem that java eclipse cannot be opened
    The reason why java eclipse cannot be opened may be because the JDK is not configured properly. We can add three environment variables "Java_Home", "Classpath" and "Path" to the "System Variables" to solve the problem.
    JavaBase 5382 2019-12-10 11:28:11
  • Solution to Chinese garbled code in Java page
    Solution to Chinese garbled code in Java page
    Solution to garbled java page: 1. Set the Encoding option in JSP Files in eclips to UTF-8. 2. Modify the jsp file header to UTF-8. 3. Set the request object encoding in servlet. 4. Set the configuration file in tomat.
    JavaBase 3058 2019-12-10 10:58:39
  • Java web garbled solution
    Java web garbled solution
    Solution to Java web garbled code: 1. Set the encoding format for file saving to be the same as the page encoding format. 2. The encoding declared in jsp. 3. Set the character encoding processed in the filter, which is limited to the input and output data encoding.
    JavaBase 3268 2019-12-09 16:33:05
  • How to find unique numbers in an array in java
    How to find unique numbers in an array in java
    The idea of ​​​​finding non-repeating numbers in an array in Java is: first compare the first number in the array with each number in the array. If the number of times the two numbers are the same is equal to 2, it means that the two numbers are repeated. , if the same number of times is equal to 1, it means that the two numbers are not repeated.
    JavaBase 4901 2019-12-09 16:14:46
  • How to import excel files in java
    How to import excel files in java
    The idea of ​​​​importing excel files in java is: upload the file first, and then read the data of the file. The specific method is: first make a temporary table of imported information to store the information in the imported file. Whenever importing, first clear the table information, then get the data and put it in, then check the imported data, and finally Just import them all.
    JavaBase 4775 2019-12-09 15:50:47
  • What is process synchronization and synchronous transmission in java
    What is process synchronization and synchronous transmission in java
    Process synchronization in Java means: when a function call is issued, the call will not return before the result is obtained. That is, one thing must be done one by one, and the next thing cannot be done until the previous thing is completed. thing. Synchronous transmission means that the time interval between data blocks is fixed, and their time relationship must be strictly specified.
    JavaBase 3909 2019-12-09 15:30:52
  • How to generate non-repeating random numbers in java
    How to generate non-repeating random numbers in java
    How to generate non-repeating random numbers in java: Use the random() method in the Math class below java.lang to generate random numbers, and then store the generated random numbers in a set (a set is a value without repeating). When there are repeating values , will not be added to it. The numbers in the set generated using this method are non-repeating random numbers.
    JavaBase 13064 2019-12-09 14:48:14
  • Solution to Java reading and writing garbled characters
    Solution to Java reading and writing garbled characters
    Solution to Java reading and writing garbled characters: 1. When reading a file, use the InputStreamReader class to read bytes using the specified character set and decode them into characters. 2. When writing a file, use the specified character set through the OutputStreamWriter class to encode the characters written into bytes.
    JavaBase 2132 2019-12-09 13:18:46
  • Solutions to garbled characters in java files
    Solutions to garbled characters in java files
    Garbled characters in Java files are caused by the different encoding formats of the Java files and the editor. We can set the corresponding encoding display in the editor, or convert all the Java files in the project to supported encodings.
    JavaBase 4435 2019-12-09 11:30:09
  • How to decompile java
    How to decompile java
    Java decompilation method: You can use java decompilation tools to decompile, such as javap, jad, cfr and the visual decompilation tool JD-GUI. We can directly use commands or directly drag files to the visual decompilation tool JD- Decompilation is available in the GUI.
    JavaBase 8768 2019-12-07 15:06:07
  • Java project garbled solution
    Java project garbled solution
    Solution to garbled code in Java projects: 1. Set the encoding of the work space. The system default format is GBK. 2. Set the encoding of the project: Right-click the selected project and select "Properties" - "Resources" - "Other" in the pop-up menu to set the encoding.
    JavaBase 16646 2019-12-07 14:19:40
  • How to implement rewriting in interface in java
    How to implement rewriting in interface in java
    This article is recommended by the Java language introduction column. It demonstrates rewriting in the interface with an example. I hope it can help you. When an ordinary class implements an interface, both ordinary methods and abstract methods must be rewritten. The default method may or may not be rewritten.
    JavaBase 4093 2019-12-07 12:01:30
  • How to test interface in java
    How to test interface in java
    Methods for testing interfaces in Java: 1. Test class test: write a test class, call the Facade interface, and get a value from the database, assign an actual parameter to the formal parameter of the interface in the test class, and then run or breakpoint debugging . 2. Use swagger for testing.
    JavaBase 5026 2019-12-07 10:22:49
  • How to define methods in java
    How to define methods in java
    The method definition syntax in Java is: [modifier] + return value type + method name (parameter type) {method body}. The access modifier is the scope of permissions that the method is allowed to access. The return value type is the type of the method's return value. The method name must use a legal identifier.
    JavaBase 4960 2019-12-07 10:07:17
  • What does the '=' symbol in java mean?
    What does the '=' symbol in java mean?
    The "=" symbol in Java is an assignment operator. The assignment operator refers to the symbol that specifies a numerical value for a variable or constant. It is a binary operator, and the operand on the left must be a variable, not a constant or an expression. Syntax format: variable name = expression content.
    JavaBase 5709 2019-12-07 09:18:26

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!