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
  • Two implementation methods of struts2 single file upload

    Two implementation methods of struts2 single file upload

    There are 2 ways to simulate a single file upload. The effect is as follows. The development steps are as follows: 1. Create a new web project and import the jars required for struts2 upload files, as shown below. The directory structure is as shown below
    2025-01-13
  • Example sharing of cropping pictures and saving them in java

    Example sharing of cropping pictures and saving them in java

    We will learn through the following steps: Input an image Specify the path of the image to be processed Allow the user to drag and drop the part to be cropped After selection Use the Robot class to determine the coordinates of the cropped part Crop the se
    2025-01-13
  • Java uses rmi to transfer large files example sharing

    Java uses rmi to transfer large files example sharing

    Why use RMI? In this project, we thought of many ways to communicate between the client and the server. Since we were doing a rich client application, we finally selected the technology between RMI and Java-sockets. Among them, RMI is not very flexible. B
    2025-01-13
  • Java uses JDBC to connect to Oracle_MSSQL example code

    Java uses JDBC to connect to Oracle_MSSQL example code

    1. Statement copy code is as follows: import java.sql.*; public class TestJDBC {public static void main(String[] args) {Connection oracle_c
    2025-01-13
  • java add content to the end of the file example sharing

    java add content to the end of the file example sharing

    Copy the code as follows: BufferedWriter out = null; try { out = new BufferedWriter(new FileWriter("filename", true)); out.write("aString
    2025-01-13
  • Detailed explanation of java basic knowledge I/O stream usage

    Detailed explanation of java basic knowledge I/O stream usage

    The concept of "stream" originates from the concept of pipe in UNIX. In UNIX, a pipe is an uninterrupted byte stream used to implement communication between programs or processes, or to read and write peripheral devices, external files, etc. It
    2025-01-13
  • Detailed introduction to the default method of Java8

    Detailed introduction to the default method of Java8

    What is the default method? After the release of Java 8, new methods can be added to the interface, but the interface will still remain compatible with its implementation class. This is important because the library you develop may be widely used by multi
    2025-01-13
  • java query objectid example in mongodb

    java query objectid example in mongodb

    I have been looking for a long time to find the wrong way to query objectid. I can query it using mongovue, but I don’t know how to query it using java. 1. Query method in mongovue: Copy the code as follows: {"_id" : ObjectId("5326bfc0e6f78
    2025-01-13
  • Two small examples of setting background images for jpanel

    Two small examples of setting background images for jpanel

    This Jpanel can dynamically load a picture as a background copy code. The code is as follows: import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit; import javax.swing.
    2025-01-13
  • Example of implementing jframe transparent form in java

    Example of implementing jframe transparent form in java

    Copy the code as follows: import javax.swing.JFrame;public class TansluFrame extends JFrame{public TansluFrame(){com.sun.awt.AWTUtilities
    2025-01-13
  • Unchecked or unsafe operation solution appears when compiling java

    Unchecked or unsafe operation solution appears when compiling java

    I encountered a problem when I used editplus to write java files. Copy the code as follows: import java.util.*;class collection{public static void main(String[] args) {Collecti
    2025-01-13
  • Example sharing of using color selector in java

    Example sharing of using color selector in java

    Copy the code as follows: package com.liuxing.test;import java.awt.Color;import java.awt.event.ActionEvent;import java.awt.event.ActionLi
    2025-01-13
  • Share a simple way to write a string to a file in java

    Share a simple way to write a string to a file in java

    This example can easily write a string to a file. You can try it. This is a code I learned from a foreign friend. You can learn from it. The copied code is as follows: import java.io.IOException; import java. nio.file.Files;import
    2025-01-12
  • Java example sharing of finding the maximum value of three numbers

    Java example sharing of finding the maximum value of three numbers

    Copy the code as follows: import java.util.Arrays; import java.util.Scanner; public class MaxOf3_2 { /* * Get the largest integer */ public static int ge
    2025-01-12
  • Java console input example sharing

    Java console input example sharing

    There are several methods for java console input: 1. Reading method for JDK 1.4 and below. In JDK 1.4 and below, there is only one way to input data from the console, which is to use System.in to obtain the system's input stream. Then bridge to the ch
    2025-01-12