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 uses Scanner to parse files

    Java uses Scanner to parse files

    Java uses Scanner to parse files. In the previous chapter, we learned how to use objects of the Scanner class to parse data in strings, so in this section we will learn how to use objects of the Scanner class to parse data in files. The application may ne
    2024-11-08
  • Java serialization and object cloning

    Java serialization and object cloning

    Java Serialization and Object Cloning We already know that if two objects of a class have the same reference, then they have the same entity and function, such as: A one = new A();A&am...
    2024-11-08
  • Java Object Stream

    Java Object Stream

    The Java object streams ObjectInputStream and ObjectOutputStream classes are subclasses of the InputStream and OutputStream classes respectively. ObjectInputStream and ObjectOutputS…
    2024-11-08
  • Java data flow

    Java data flow

    The objects created by the Java data streams DataInputStream and DataOutputStream classes are called data input streams and data output streams. These two streams are useful streams that allow programs to read Java raw data in a machine-independent style.
    2024-11-08
  • Java array stream

    Java array stream

    We need to know that in Java array streams, in addition to files, the source and destination of the stream can also be computer memory. 1. Byte array stream Byte array input stream ByteArrayInputStream and byte array output stream ByteArrayOutputStream ar
    2024-11-08
  • Java random stream

    Java random stream

    Java Random Stream We know from the previous study that if you are going to read a file, you need to create an input stream pointing to the file; if you are going to write a file, you need to create an output stream pointing to the file. So, can you creat
    2024-11-08
  • Java buffered stream

    Java buffered stream

    In the previous sections of Java buffered streams, we learned about file byte input and output streams and file character input and output streams. In this section, we learn a new concept - buffered streams. So what is a buffered stream? What role can buf
    2024-11-08
  • Java file character input and output streams

    Java file character input and output streams

    The read and write methods of Java file character input and output streams file byte input and output streams use byte arrays to read and write data, that is, to process data in bytes. Therefore, byte streams do not operate well with Unicode characters. F
    2024-11-08
  • Java collections

    Java collections

    Java Collections Java collection classes are the most commonly used and frequently used classes in work. Compared with arrays (Array), collection classes have variable lengths and are more convenient for development. Java collections are like containers t
    2024-11-08
  • Java Shell Sort

    Java Shell Sort

    Java Shell Sort Shell Sort is a type of insertion sort and a more efficient and improved version of direct insertion sort. Shell Sort makes full use of two characteristics of insertion sort: 1) When the data scale I was very efficient when I was little. 2
    2024-11-08
  • Java direct insertion sort

    Java direct insertion sort

    Java Direct Insertion Sort Direct insertion sort means to insert elements to be sorted one by one into the previously sorted ordered sequence until all elements have been inserted. The main steps are as follows: 1) First assume that the first element has
    2024-11-08
  • Java Selection Sort

    Java Selection Sort

    Java Selection Sort Selection Sort is a simple and intuitive sorting algorithm. Its algorithm principle is to first find the smallest (large) element in the unsorted sequence, store it at the starting position of the sorted sequence, and then Then continu
    2024-11-08
  • Java merge sort (Merge Sort)

    Java merge sort (Merge Sort)

    Java Merge Sort (Merge Sort) Merge Sort (MergeSort) is an effective and stable sorting algorithm based on the merge operation. This algorithm is a very typical application using the divide and conquer method (DivideandConquer). Merge sort combines two ord
    2024-11-08
  • Java Quick Sort (Quick Sort)

    Java Quick Sort (Quick Sort)

    Java Quick Sort (Quick Sort) Quick Sort (QuickSort) is an improvement on bubble sort based on the binary idea. The main idea is to establish a base, put the numbers smaller than the base to the left of the base, and put the numbers larger than the base to
    2024-11-08
  • Java bubble sort (Bubble Sort)

    Java bubble sort (Bubble Sort)

    Java Bubble Sort (Bubble Sort) 1. Bubble Sort Bubble Sort (BubbleSort) is a relatively simple sorting algorithm in programming. It repeatedly walks through the sequence to be sorted, comparing two elements at a time and swapping them if they are in the wr
    2024-11-08