DEV Community

yaswanth krishna
yaswanth krishna

Posted on

java 6

class Players{
public static void main(String[] args){
Players dhonie = new Players();
int batting = dhonie.batting(30);
System.out.println(batting);
}
public int batting(int run){
return 70+run;

    }}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)