Ajouter 'SimpleClasse.java'
This commit is contained in:
parent
647cc0c008
commit
c024742f44
1 changed files with 11 additions and 0 deletions
11
SimpleClasse.java
Normal file
11
SimpleClasse.java
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
public class SimpleClasse{
|
||||||
|
public int somme(int a, int b){
|
||||||
|
return a+b;
|
||||||
|
}
|
||||||
|
public static void main(String[] args){
|
||||||
|
SimpleClasse sc = new SimpleClasse();
|
||||||
|
int a=3;
|
||||||
|
int b=5;
|
||||||
|
System.out.println("La somme de "+a+" et "+b+" est: "+sc.somme(a,b));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue