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 Scanner class parses string using regular expression as delimited marker

    Java Scanner class parses string using regular expression as delimited marker

    The Java Scanner class uses regular expressions as delimiters to parse strings. In the previous section, we learned the first method - using the default delimiter tags to parse strings. In this section, we learned the second method - using regular express
    2024-11-08
  • Java Scanner class parses string using default delimiter markers

    Java Scanner class parses string using default delimiter markers

    The Java Scanner class uses the default delimiter token to parse strings. In the previous sections, we learned how to use split(Stringregex) of the String class to decompose strings, and how to use the StringTokenizer class to parse words in strings. In t
    2024-11-08
  • Java StringTokenizer类

    Java StringTokenizer类

    Java StringTokenizer class In the previous sections, we learned how to use the split() method of the String class to decompose a string. In this section we will learn how to use the StringTokenizer object to decompose a string. Unlike the split() method,
    2024-11-08
  • Replacement and decomposition of Java strings

    Replacement and decomposition of Java strings

    Java string replacement and decomposition 1. String replacement After JDK1.4, the string object calls the publicStringreplaceAll(Stringregex, Stringreplacement) method to return a string, which is the current string...
    2024-11-08
  • Java string encryption algorithm

    Java string encryption algorithm

    The Java string encryption algorithm uses the relationship between strings and arrays learned earlier, and uses a string password as the password to encrypt another string sourceString. The operation process is as follows: 1) Store the password password i
    2024-11-08
  • Java strings and byte arrays

    Java strings and byte arrays

    Java strings and byte arrays The construction method String(byte[]) of the String class constructs a string object using the specified byte array. The String(byte[],intoffset,intlength) constructor uses a part of the specified byte array, that is, startin
    2024-11-08
  • Java file byte output stream(2)

    Java file byte output stream(2)

    Java file byte output stream (2) In the previous section, we learned how to construct a file byte output stream. In this section, we continue to learn how to use the output stream to write bytes and close the stream. 1. Use the output stream to write byte
    2024-11-08
  • Java file byte output stream(1)

    Java file byte output stream(1)

    Java file byte output stream (1) In the previous sections, we learned about the file byte input stream. So since there is a file byte input stream, there is naturally a corresponding file byte output stream. In this section, we will learn about the file b
    2024-11-08
  • 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