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:
-
- What are the common methods of list collection in Java?
- Commonly used methods for list collections in Java are: 1. "add(int index, E element)", insert an element at the specified position, and all subsequent elements will be moved back one element; 2. "get(int index)", return the list The element at the specified index in the collection.
- JavaBase 5342 2019-11-18 14:00:13
-
- What should I do if gbk's unmappable characters appear in Java?
- The solution to the unmappable character of gbk in Java: first use notepad++ software to open the source file; then copy all the code to the clipboard; then delete all the code and set the file encoding format to ANSI; finally paste the code and save it.
- JavaBase 6471 2019-11-18 13:51:22
-
- The difference between long and Long in java
- The difference between long and Long in Java is: 1. Long is the basic data type in Java, and Long is the object type in Java; 2. For Long type data, the data is an object, and for long type data, the Data is a basic data type and does not belong to objects.
- JavaBase 6370 2019-11-18 13:39:58
-
- What does java if(x) mean?
- The meaning of java if(x) is that when the value of variable x is not empty, not 0, not false, not null, the following content will be executed.
- JavaBase 5719 2019-11-18 13:38:40
-
- Java determines whether list contains a certain value
- Java method to determine whether a list contains a certain value: You can use the "contains(Object o)" method, which is used to determine whether the list contains a specified element. If the list contains the specified element, it returns true, otherwise it returns false. .
- JavaBase 11356 2019-11-18 13:26:32
-
- What is the length of java int?
- java int is 4 bytes, 32 bits, and the value range is -2^31—2^31-1, that is, the length is -2147483648—2147483647.
- JavaBase 5997 2019-11-18 13:24:56
-
- The difference between list and arraylist in java
- The difference between List and ArrayList in Java is: List is an interface, and ArrayList is an implementation class of the List interface. The ArrayList class inherits and implements the List interface.
- JavaBase 2415 2019-11-18 13:17:23
-
- where is java jdk
- Java jdk is installed in the C:\Program Files\Java\ directory by default. You can open cmd and enter "java -version" to view the specific path; on Linux systems, you can use the which java command to view it.
- JavaBase 7588 2019-11-18 13:08:33
-
- Is the key sorting of java map?
- The keys of HashMap and HashTable in java map are not sorted, and the data is fetched randomly; the keys of LinkedHashMap and TreeMap are sorted, and the output is in the order of storage and ascending order during traversal.
- JavaBase 2192 2019-11-18 11:46:46
-
- What does the import keyword mean in java
- The import keyword in java is used to import packages. If a class is used in a class from another package, it needs to be introduced using the import keyword, for example: "java.util.*", which means to import all classes or interfaces under the util package.
- JavaBase 9986 2019-11-18 11:38:02
-
- The difference between java map and list
- The differences between java map and list are: 1. Map is a collection that maps key objects and value objects, and elements cannot be repeated; 2. List stores objects in a linear manner, and elements can be repeated; 3. List uses the add method to add elements ;4. Map uses the put method to add elements, and so on.
- JavaBase 5404 2019-11-18 11:24:14
-
- How to get out of for loop in java
- The method for Java to jump out of a for loop is: if it is a single-layer loop, use break to jump out normally; if it is a multi-layer loop, you can give the for loop a name. The naming rule is name + half-width colon, and then use break followed by the name. You can jump out of the for loop.
- JavaBase 4192 2019-11-18 11:14:58
-
- java socket garbled code
- The solution to Java socket garbled code: first use InputStreamReader on the server to specify the client's input stream as utf-8 encoding, and use OutputStreamWriter to specify the output stream as utf-8 encoding; then set the same utf-8 encoding on the client.
- JavaBase 11220 2019-11-18 11:05:34
-
- What does '...' mean in java
- The symbol "..." in Java represents a variable-length parameter, which means that any number of parameters of this type can be passed in at this position. For example, if used in a formal parameter, it means that the number of parameters passed in is variable. The parameters passed in are put into an array.
- JavaBase 15353 2019-11-18 11:00:08
-
- How to write java sql statement
- How to write a java sql statement: first write the sql statement prototype; then change the required value to double single quotes; then add double quotes between the single quotes; then add two + signs between the double quotes; finally Just write the variable in the plus sign.
- JavaBase 8631 2019-11-18 10:51:07