Home>Network programming tutorial> Java tutorial
All ASP tutorial ASP tutorial ASP.NET tutorial PHP tutorial JSP tutorial C#/CSHARP tutorial XML tutorial Ajax tutorial Perl tutorial Shell tutorial Visual Basic tutorial Delphi tutorial Mobile development tutorial C/C++ tutorial Java tutorial J2EE/J2ME Software engineering
Java tutorial
  • 2 Simple Ways to Improve Java Program Execution Time

    2 Simple Ways to Improve Java Program Execution Time

    The first is calculated in milliseconds. Java code//Pseudocode copy code The code is as follows: long startTime=System.currentTimeMillis(); //Get the start time doSomeThing(); //Tested code segment long en
    2024-11-20
  • How to use java to operate Excel files

    How to use java to operate Excel files

    I have wanted to study the method of using Java to operate Excel for a long time. I have nothing to do today, so I just learned a little bit and summarized it. To use java to operate Excel, there is an open source tool - jxl.jar, which can be found at htt
    2024-11-20
  • Detailed introduction to common classes based on JavaMail

    Detailed introduction to common classes based on JavaMail

    Application Server (1) javax.mail.Properties class JavaMail requires Properties to create a session object. It will look for the string "mail.smtp.host", and the attribute value is the host that sent the email. Usage: Copy the code The code is a
    2024-11-20
  • A brief analysis of the problem of Integer parameter passing method in Java

    A brief analysis of the problem of Integer parameter passing method in Java

    Java itself is a pass-by-value call, and the address value is passed to the object. Reassigning the address value is equivalent to repointing and will not affect the outer layer. And the Integer object here also has special characteristics. The implementa
    2024-11-20
  • Detailed analysis of access modifiers in Java

    Detailed analysis of access modifiers in Java

    1. Class modifiers are divided into two types: accessible control characters and non-access control characters. Access control symbols are: public class modifier public non-access control symbols are: abstract class modifier abstract; final class modifier
    2024-11-20
  • Detailed analysis of conversion between java list and array

    Detailed analysis of conversion between java list and array

    1 To convert an array into a List, call the static method asList of the Arrays class. asListpublic static<T> List<T> asList(T... a)Returns a fixed-size list backed by the sp
    2024-11-20
  • Detailed explanation of conversion between list, set and array in JAVA

    Detailed explanation of conversion between list, set and array in JAVA

    To convert between JAVA lists, sets, and arrays, you mainly use Apache Jakarta Commons Collections. The specific method is as follows: import org.apache.commons.collections.CollectionUt
    2024-11-20
  • The difference between HashMap, Hashtable and HashSet in Java

    The difference between HashMap, Hashtable and HashSet in Java

    Hashtable class Hashtable inherits the Map interface and implements a hash table of key-value mapping. Any non-null object can be used as key or value. To add data, use put(key,value), and to remove data, use get(key). These two
    2024-11-20
  • A brief analysis of the differences between Map, HashMap, Hashtable, and HashSet in Java

    A brief analysis of the differences between Map, HashMap, Hashtable, and HashSet in Java

    The first difference between HashTable and HashMap is that they inherit from different parent classes. Hashtable inherits from Dictionary class, while HashMap inherits from AbstractMap class. But both implement the Map interface. Copy the code as follows:
    2024-11-20
  • 2024-11-20
  • Detailed analysis of Java thread related methods

    Detailed analysis of Java thread related methods

    start() starts the thread method run(). When the start() method is called, what is actually executed is the method body sleep() of the method, which puts the current thread to sleep. When the sleep expires, it automatically wakes up and enters the runnabl
    2024-11-20
  • Solution to garbled java URL

    Solution to garbled java URL

    Usually we encode once and then directly accept the parameter String para = request.getParameter(paramName); This is because the container can automatically decode (DECODE) for us. Generally speaking, when encoding, the UTF-
    2024-11-20
  • Java method example of calling Oracle stored procedure

    Java method example of calling Oracle stored procedure

    1. Test the procedure for adding data. Copy the code as follows: public void testProcedure() {Connection con = getConnction(); // **1. Test the procedure for adding data. String p
    2024-11-20
  • Java example code for removing blank lines from text files

    Java example code for removing blank lines from text files

    Copy the code as follows: import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.File;import java.io.FileInputSt
    2024-11-20
  • Basics of getting started with JAVA annotation

    Basics of getting started with JAVA annotation

    1. The most common annotation@Override: used on methods to tell others that this method is an override of the parent class. @Deprecated: used to advise others not to use the old API. It will generate a warning message during compilation. , can be set on a
    2024-11-20