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 Pattern class and Matcher class (2)

    Java Pattern class and Matcher class (2)

    Java Pattern Class and Matcher Class (2) In the previous section, we learned the first step of using the Pattern class and Matcher class, establishing a pattern object. In this section, we continue to learn the second step to obtain the matching object. G
    2024-11-08
  • Java Pattern class and Matcher class (1)

    Java Pattern class and Matcher class (1)

    Java Pattern class and Matcher class (1) Pattern matching is to retrieve and match strings with specified patterns. Java provides Pattern class and Matcher class specially used for pattern matching. These classes are in the java.util.regex package. Next,
    2024-11-08
  • Common methods of Java StringBuffer class

    Common methods of Java StringBuffer class

    Common methods of the Java StringBuffer class 1.append method Use the append method of the StringBuffer class to convert other Java type data into strings and then append them to the StringBuffer object. 1) StringBufferappend(Stri...
    2024-11-08
  • Java StringBuffer class (Creation of StringBuffer objects)

    Java StringBuffer class (Creation of StringBuffer objects)

    Java StringBuffer class (Creation of StringBuffer objects) In the previous sections we learned about the String object. The string object created by the String class cannot be modified. That is to say, the String string cannot modify, delete or replace th
    2024-11-08
  • Java formatted floating point number

    Java formatted floating point number

    Java formatting floating point numbers 1. float, Float, double and Double%f, %e (%E), %g (%G) and %a (%A) format characters can format float, Float, double and Double, where: %f formats the value as a decimal floating point number…
    2024-11-08
  • Java formatted integer

    Java formatted integer

    Java formatting integers 1.%d, %o, %x and %X%d, %o, %x and %X format characters can format byte, Byte, short, Short, int, Integer, long and Long types data where: %d formats the value as a decimal integer. %o will value...
    2024-11-08
  • Java one-dimensional array

    Java one-dimensional array

    Java one-dimensional array When each element in the array has only one subscript, this array is a one-dimensional array. One-dimensional array is the simplest type of array. 1. Initialization of one-dimensional arrays There are two initialization methods
    2024-11-08
  • Use of Java arrays

    Use of Java arrays

    The use of Java arrays 1. The use of elements After learning in the first two sections, we know how to create arrays. In this section we continue to learn the use of arrays. One-dimensional arrays access their elements through index symbols, such as boy[0
    2024-11-08
  • Java assign elements to array

    Java assign elements to array

    Java allocates elements to an array. In the previous section, we mentioned that creating an array requires two steps: declaring the array and allocating elements to the array. In this section, we mainly learn how to allocate elements to the array. Declari
    2024-11-08
  • Java declaration array

    Java declaration array

    Java declares arrays. Through previous studies, we have learned about basic data types such as int, char, double, etc. In this section we will learn about arrays. I don’t know if you have ever thought about it, what should you do if your program requires
    2024-11-08
  • Java file lock

    Java file lock

    Java file locks often occur when several programs process the same file, such as updating or reading the file at the same time. Such issues should be dealt with, otherwise chaos may ensue. After JDK1.4, Java provides a file lock function that can help sol
    2024-11-08
  • Java input stream with progress bar

    Java input stream with progress bar

    Java input stream with progress bar If you want to see the reading progress of the file when reading a file, you can use the input stream class ProgressMonitorInputStream provided by the javax.swing package. Its construction method is: ProgressMonitor&amp
    2024-11-08
  • Java file dialog

    Java file dialog

    Java File Dialog The file dialog is an interface for selecting files. The JFileChooser class in the Javax.swing package can create a file dialog box. Use the constructor JFileChooser() of this class to create an initially invisible modal file dialog box.
    2024-11-08
  • 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