import java.util.*;
class std {
private int a;
private int b;
// method overloading
std() {
System.out.println("ccc");
}
std(int n) {
System.out.println("aaa");
}
std(char c) {
System.out.println("bbb");
}
}
public class Main {
public static void main(String[] args) {
std s = new std('A');
Arrays.sor
}
}
import java.util.*;
class math {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
int b = t.nextInt();
int c = t.nextInt();
}
}
package student;
import java.util.*;
public class school {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int n = t.nextInt();
int math, eng, number, sic, social, name;
student sang[] = new student[n];
for(int i=0; i<n; i++) {
sang[i] = new student();
}
for(int i=0; i<n; i++) {
System.out.print("출석번호 입력 : ");
sang[i].number = t.nextInt();
System.out.print("수학점수 입력 : ");
sang[i].math = t.nextInt();
System.out.print("영어점수 입력 : ");
sang[i].eng = t.nextInt();
System.out.print("과학점수 입력 : ");
sang[i].sic = t.nextInt();
System.out.print("사회점수 입력 : ");
sang[i].social = t.nextInt();
}
System.out.println("출석 수학 영어 과학 사회 평균");
for(int i=0; i<n; i++) {
System.out.printf("%4d", sang[i].getNumber());
System.out.printf("%4d", sang[i].getMath());
System.out.printf("%4d",sang[i].getEng());
System.out.printf("%4d",sang[i].getSic());
System.out.printf("%4d",sang[i].getSocial());
System.out.printf("%4d\n",sang[i].getavg());
}
}
}
package student;
public class student {
int math, eng, number, sic, social;
public void setMath(int n) {
math = n;
}
public void setEng(int n) {
eng = n;
}
public void setSic(int n) {
sic = n;
}
public void setSocial(int n) {
social = n;
}
public void setNumber(int n) {
number = n;
}
public int getMath() {
return math;
}
public int getEng() {
return eng;
}
public int getNumber() {
return number;
}
public int getSic() {
return sic;
}
public int getSocial() {
return social;
}
int getavg() {
return (math+eng+sic+social)/4;
}
}
import java.util.*;
class math {
void math(int n, int m) {
System.out.printf("%d", a+b);
}
void math(int n, double m) {
System.out.printf("%d", a-b);
}
math(double n, int m) {
System.out.printf("%d", a*b);
}
math(double n , double m) {
System.out.printf("%d", a%b);
}
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
int a = t.nextInt();
double b = t.nextDouble();
math m = new math(a, b);
}
}