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 Random class

    Java Random class

    Java Random class Although we can use the Math class to call its class method random() to return a random number between 0 and 1 (excluding 0 and 1), for example: (int)(Math.random()*100)+1 ; //Get between 1 and 100...
    2024-11-08
  • Java BigInteger class (big integer class)

    Java BigInteger class (big integer class)

    Java BigInteger class (large integer class) We need to know that programs sometimes need to deal with large integers, so what should we do? We can use the BigInteger class in the java.math package to provide arbitrary precision integer operations by using
    2024-11-08
  • Java Math class

    Java Math class

    Java Math Class When we write a program, we may need to calculate the square root of a number, or the absolute value, or obtain a random number, etc. The Math class in the java.lang package contains many class methods used for scientific calculations. The
    2024-11-08
  • Java weekday format in different regions

    Java weekday format in different regions

    We need to know the week format in different regions of Java. The abbreviation or full name of the week in different countries is very different. For example, the United States uses Thu (Thursday) for the abbreviation (full name) of Thursday, and Japan us
    2024-11-08
  • Java date formatting method

    Java date formatting method

    Java date formatting method We may want to output the time according to a certain habit, such as the order of time: year, month, Sunday or year, month, Sunday, hours, minutes and seconds. In the early days of Java, SimpleDateFormat, a subclass of DateForm
    2024-11-08
  • Java Calendar class

    Java Calendar class

    Java Calendar class The Calendar class is also in the java.util package. You can initialize a calendar object using the static method getInstance() of the Calendar class, for example: Calendar calendar&am...
    2024-11-08
  • Java Date class

    Java Date class

    The Java Date class may need date, time and other data during programming, so in this section we will introduce the Date class in the java.util package. The Date class can be used to process data related to date and time. 1. Created using the parameterles
    2024-11-08
  • 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