Java third class summary

Hands-on brain 1:

package ketangceshia;
import java.util.Random;
public class fuben {
    public static void main(String[] args) {
        Random s=new Random();
         int m=s.nextInt(100);
         for(int i=1;i<=1000;i++){
             m=((7^5*m+0)%100000);
             System.out.println(m+" ");           
         }
    }
}

Hands-on brain 2: This shows the method overloading, a different method name, parameter types, the number of the order is different.

Guess you like

Origin www.cnblogs.com/vvxvv/p/11599795.html