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 File class directory

    Java File class directory

    Java File class directory 1. Create a directory The File object calls the method publicbooleanmkdir() to create a directory. If the creation is successful, it will return true, otherwise it will return false. If the directory already exists, it will retur
    2024-11-08
  • Java File class

    Java File class

    Java File class programs may often need to obtain information about files on the disk or create new files on the disk, etc. This requires learning to use the File class. It should be noted that objects of the File class are mainly used to obtain some info
    2024-11-08
  • Java input and output streams

    Java input and output streams

    In this chapter of Java input and output streams, we are going to learn the input and output streams of the Java language. We all know that during the running of the program, the required data may need to be read from external storage media or other progr
    2024-11-08
  • Java Class

    Java Class

    Java Class Class is a class in the java.lang package. Instances of this class can help programs create instances of other classes or obtain internal information of objects of other classes. 1. Use Class to instantiate an object. The most common way to cre
    2024-11-08
  • 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