public class demoJava{
int a = 1;
String b = "hello";
char c = 'c';
public void demoJava (int a, String b){
this.a = a;
this.b = b;
}
public static void main(String[] args) {
demoJava obj = new demoJava();
obj.demoJava(3, "你好");
System.out.println(obj.a);
System.out.println(obj.b);
}
}