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
  • Java implements screen capture and cropping

    Java implements screen capture and cropping

    There is a Robot class in the Java standard API, which can implement screenshots and simulate mouse and keyboard operations. Only a screenshot of it is shown here. The key method for taking screenshots is createScreenCapture(Rectangle rect). This method r
    2025-01-24
  • Example of using httpclient to call https without certificate (java calling https)

    Example of using httpclient to call https without certificate (java calling https)

    Use httpclient to call https URL address without certificate and transmit byte stream. Copy the code as follows: package com.paic.hmreport.metaQ;import java.io.BufferedInputStream;import j
    2025-01-24
  • Code examples of four methods for adding event listening in Java

    Code examples of four methods for adding event listening in Java

    Several ways to add events in Java (reprinted from codebrother's article with slight changes): /** * Java event listening processing - its own class implements the ActionListener interface as an event listener* * @author codebrother */class
    2025-01-24
  • Summary of Spring common annotations

    Summary of Spring common annotations

    This article summarizes Spring's common annotations to facilitate everyone's query and use. The details are as follows: Before using annotations, you must turn on the automatic scanning function, where base-package is the package (including sub-pa
    2025-01-24
  • commons io file operation example sharing

    commons io file operation example sharing

    Copy the code as follows: package com.pzq.io;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.
    2025-01-24
  • activiti gets the flowchart instance

    activiti gets the flowchart instance

    The example in this article describes how Activiti obtains the flow chart. The specific steps are as follows: 1. The publishing process code is as follows: repositoryService.createDeployment() .name("expense-process.bar") .addClas
    2025-01-23
  • Example of implementing drag and drop function in java swing

    Example of implementing drag and drop function in java swing

    Example of java implementation of drag and drop. The drag and drop function is implemented in Swing. The code is very simple and has comments. See for yourself. The running effect is as follows: Copy the code. The code is as follows: package com; import j
    2025-01-23
  • Java implements insertion sort algorithm

    Java implements insertion sort algorithm

    1. Algorithm concept. Each time the first element is taken out of the unordered list and inserted into the appropriate position of the ordered list, so that the ordered list remains ordered. 2. Algorithmic thinking. Assume that the records to be sorted ar
    2025-01-23
  • Java date tool class example sharing

    Java date tool class example sharing

    Copy the code as follows:/*** Date tool class* Use "yyyy-MM-dd HH:mm:ss" by default to format date*/public final class DateUtils {/*** English abbreviation (default) such as: 2010- 12-01*/public s
    2025-01-23
  • Java multi-threaded processing execution Solr index creation example

    Java multi-threaded processing execution Solr index creation example

    Copy the code as follows: public class SolrIndexer implements Indexer, Searcher, DisposableBean {//~ Static fields/initializers =========
    2025-01-23
  • Basic methods for installing Java and configuring environment variables on Mac OS

    Basic methods for installing Java and configuring environment variables on Mac OS

    Installation: Because not all users need Java, OS .http://support.
    2025-01-23
  • Example of using opencsv to read and write csv files in Java

    Example of using opencsv to read and write csv files in Java

    OpenCSV is a simple java class library for parsing CSV files. It encapsulates the output and reading of CSV format files, and can automatically handle special characters in the CSV format. The most important thing is that OpenCSV can be used for commercia
    2025-01-23
  • Solution to the shared synchronization problem of tomcat memecached session in Java

    Solution to the shared synchronization problem of tomcat memecached session in Java

    Cause of the incident: A main project "pictures describing beautiful things", and another sub-function is the brand owner's entry function, which is a project separate from the main project. In order to share logged-in user information, sess
    2025-01-23
  • Analysis of static keyword usage examples in java

    Analysis of static keyword usage examples in java

    The examples in this article describe the usage of the static keyword in Java and are shared with you for your reference. The specific analysis is as follows: 1. Introduction: 1. In a class, member variables declared with static are static member variable
    2025-01-23
  • In-depth analysis of the use of boolean objects in Java programming

    In-depth analysis of the use of boolean objects in Java programming

    A variable that can only have one of two values, true or false, is a Boolean type variable, and true and false are Boolean direct quantities. You can use the following statement to define a Boolean variable named state: boolean state=true This statement u
    2025-01-23