public class Cricket {
public int calculate(int balls) { //System.out.println("gugan ball"); return balls * 6; }
}
public class Player1 {
public static void main(String[] args) {
Cricket gugan = new Cricket();
int balls = gugan.calculate(10);
System.out.println(balls); }
}
The above is the detailed content of Cricket task. For more information, please follow other related articles on the PHP Chinese website!