Home> Network programming 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
Network programming tutorial
  • Java file byte input stream(2)

    Java file byte input stream(2)

    Java file byte input stream (2) In the previous section, we learned how to construct a file byte input stream. In this section, we continue to learn how to use the input stream to read bytes and close the stream. 1. The purpose of using the input stream t
    2024-11-08
  • Java file byte input stream(1)

    Java file byte input stream(1)

    Java file byte input stream (1) Using an input stream usually involves four basic steps: (1) Set the source of the input stream (2) Create an input stream pointing to the source (3) Let the input stream read the data in the source ( 4) Close the input str
    2024-11-08
  • Java File class file

    Java File class file

    Java File class file 1. Creation and deletion of files When using the File class to create a file object, for example: File file = new File("C:...
    2024-11-08
  • 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