reorganisation + hashmap

This commit is contained in:
Debucquoy
2023-04-26 11:24:13 +02:00
parent c561eda0cf
commit 454ac6e17e
37 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,27 @@
public class Couple {
private int q;
private int r;
public Couple(int q, int r) {
this.q = q;
this.r = r;
}
public void setQ(int q) {
this.q = q;
}
public int getQ() {
return q;
}
public void setR(int r) {
this.r = r;
}
public int getR() {
return r;
}
}

View File

@ -0,0 +1,11 @@
public class Division {
public static void main(String[] args) {
Couple test = Division(5, 3);
System.out.println(test.getQ() + ": " + test.getR());
}
public static Couple Division(int a, int b){
return new Couple(a/b, a%b);
}
}