current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Garbled characters appear in the java console
- The reason why garbled characters appear in the Java console: The encoding of the console defaults to the encoding of the operating system, such as GBK. Solution: Since the encoding of Java resources is utf8, you only need to specify the encoding of the console as utf8.
- JavaBase 4455 2019-11-16 14:14:24
-
- What are the commonly used classes in java
- Commonly used classes in Java are: 1. String class; 2. StringBuffer class; 3. Random class, used to return a pseudo-random number; 4. Date class, the Date class represents the date; 5. Timer class, the Timer class represents the timing class .
- JavaBase 4030 2019-11-16 13:49:50
-
- What are the data types in java
- There are two main types of data types in Java, namely basic data types (integer, floating point, character, Boolean) and reference data types (classes, interfaces, arrays).
- JavaBase 5211 2019-11-16 13:34:07
-
- How to import excel files in java
- How to import excel files in java: first download the POI resource package, then copy the jar package to the lib of the project and configure the compilation path, and finally add a reference to the java file to read the excel file.
- JavaBase 6990 2019-11-16 13:13:15
-
- How to assign value to array in java
- In Java, you can use the "=" symbol to assign a value to an array, for example: "arr[0]=1", where 0 represents the first element with index 0 in the array, and 1 represents the first element in the array The value of the element is 1.
- JavaBase 12239 2019-11-16 11:56:17
-
- How to configure the java environment
- The method to configure the java environment is: first enter the environment variable setting in the computer's advanced system settings, then create a new JAVA_HOME variable in the system variables, then set the system variable Path, and finally create a new variable classpath.
- JavaBase 16228 2019-11-16 11:42:56
-
- Garbled characters appear when submitting data via form in java using post method
- The reason why the data submitted by the form in java in post mode is garbled is because the browser views the ISO8859-1 code table to submit the data by default. Solution: Just set the encoding of the request object. Whichever way the client data is submitted, the request will be set to the encoding.
- JavaBase 2644 2019-11-16 10:46:09
-
- How to understand the concept of collections in java
- A collection in Java is a container used to store objects. The Java collection class is stored in the java.util package. It should be noted that Java collections can only store objects, and they are references to objects rather than objects themselves.
- JavaBase 5251 2019-11-16 10:32:08
-
- Java determines whether it is in an array
- How to determine whether the data is in the array in java: first use Arrays.asList to convert the array into List type data; then use the contains method of List type data to determine; finally, it can be determined that the data is in the array based on the return value being true.
- JavaBase 5070 2019-11-16 09:43:59
-
- what is type in java
- A type in Java refers to a data type. A data type is the collective name for a set of values with the same properties and a set of operations defined on this set of values. The Java language provides 8 basic data types and reference data types.
- JavaBase 5522 2019-11-16 09:25:47
-
- Java determines whether a string contains characters
- How to determine whether a string contains characters in Java: 1. Use the startsWidth function. If the return value is true, it means it is included. 2. Use the contains function. If the return value is true, it means it is included. 3. Use the indexOf function. If the return value is not -1, it means it is included.
- JavaBase 5098 2019-11-15 17:25:35
-
- The difference between static methods and non-static methods in java
- The difference between static methods and non-static methods in Java is: static methods are methods modified with static in the class and have been loaded and allocated when the class is defined, while non-static methods are methods without the static keyword. In the class No memory is occupied when defined.
- JavaBase 7495 2019-11-15 17:16:16
-
- Java determines whether a character is in date format
- The method to determine whether a character is in date format: first create a function isValidDate that receives a string parameter; then use SimpleDateFormat in the try statement to convert the string into date format; finally, an exception can be caught in catch indicating that the string is not in date format.
- JavaBase 5443 2019-11-15 17:14:27
-
- How to use java package
- How to use java packages: Packages are used to avoid class name conflicts. When defining a package, add "package package name;" in the first line of the code. When using a package, use "import package name.class name;" to import.
- JavaBase 3792 2019-11-15 16:52:49
-
- How to understand the concept of process in java
- The process in Java is the basis of the operating system structure. Each process has its own address space. At the same time, the process is also an executing program. Only when the processor gives life to the program can it become an active entity.
- JavaBase 3181 2019-11-15 16:44:11