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 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 16059 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 2492 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 5027 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 4796 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 5340 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 4804 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 7340 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 5127 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 3647 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 3031 2019-11-15 16:44:11
-
- java inserts mysql garbled code
- Solution to java inserting garbled characters into mysql: 1. Specify the character set as utf-8 on the front-end page; 2. Use setCharacterEncoding to set the encoding format when receiving parameters in the background; 3. Use the parameter "characterEncoding=utf8" when connecting to the database.
- JavaBase 1912 2019-11-15 16:23:47
-
- java program development steps
- The development steps of a Java program are: 1. Analyze what the class should do; 2. List instance variables and methods; 3. List methods and pseudocode; 4. Write test programs for methods; 5. Implement classes; 6. Test Method; 7. Debug or redesign.
- JavaBase 13498 2019-11-15 16:16:10
-
- How to use java code
- Usage of java code: java code needs to be compiled using a compiler to generate class files in order to be executed correctly. First, we can use the eclipse software to import the java project; then set the encoding of the file; and finally click the run button of eclipse.
- JavaBase 4757 2019-11-15 16:01:26
-
- What are collections in java
- Collections in java include: 1. List collection (ArrayList collection, Vector collection, LinkedList collection); 2. Set collection (Hashset collection, Treeset collection).
- JavaBase 8344 2019-11-15 15:40:54
-
- The difference between interface and class in java
- The difference between interfaces and classes in Java is: 1. Interfaces are a collection of abstract methods, and classes are used to describe the properties and methods of objects; 2. All properties in interfaces are "public static final", and classes are public by default. of.
- JavaBase 4598 2019-11-15 15:26:41