all java projects in once

This commit is contained in:
2020-11-06 10:42:30 +01:00
commit e5d798a61a
199 changed files with 7176 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
class Main {
public static void main(String[] args) {
Chevre chevre = new Chevre();
chevre.faireDuBruit();
Chien chien = new Chien();
chien.faireDuBruit();
Poule poule = new Poule();
poule.faireDuBruit();
}
}
class Animal {
public Animal() {
}
}
class Chevre extends Animal {
public void faireDuBruit() {
System.out.println("Beeeh");
}
}
class Chien extends Animal {
public void faireDuBruit() {
System.out.println("Waf");
}
}
class Poule extends Animal {
public void faireDuBruit() {
System.out.println("Cot cot");
}
}
+14
View File
@@ -0,0 +1,14 @@
class EvenNumbers {
public static void main(String[] args) {
evenNumbers(Integer.parseInt(args[0]));
}
public static void evenNumbers(Integer n) {
char[] chars = string.toCharArray(String.valueOf(n));
for (char c: chars) {
if (Integer.parseInt(String.valueOf(c))%2==0) {
System.out.printf(String.valueOf(c)+" ");
}
}
}
}
+10
View File
@@ -0,0 +1,10 @@
class Movie {
public Movie(String title, String author, Integer date) {
this.title = title;
this.author = author;
this.date = date;
}
public String getDescription() {
return "Le film "+this.name+" réalisé par "+this.author+" est sorti en "+String.valueOf(this.date)+".";
}
}
+8
View File
@@ -0,0 +1,8 @@
class Paire {
public static void main(String[] args) {
paire(Integer.parseInt(args[0]));
}
public static void paire(int n) {
System.out.println(n%2==0);
}
}
+10
View File
@@ -0,0 +1,10 @@
public class Triangle {
public static void main(String[] args) {
triangle(Integer.parseInt(args[0]));
}
public static void triangle(int n) {
for (int i=0; i<n; i++) {
System.out.println("*".repeat(n-i));
}
}
}
+13
View File
@@ -0,0 +1,13 @@
public static void triangle(int n) {
for(int j=n;j>=0;j-=1){
int ligne=j;
while(ligne>=0){
if(ligne>0){
System.out.print("*");
}else{
System.out.print("\n");
}
ligne--;
}
}
}
View File
+28
View File
@@ -0,0 +1,28 @@
!SESSION 2018-11-20 23:08:26.769 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=fr_FR
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.core.net 1 0 2018-11-20 23:09:06.349
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.857
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.jdt.doc.user_3.15.0.v20180905-1254 [225]'. The index should be rebuilt with Lucene 7.0.0
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.873
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.wst.dtdeditor.doc.user_1.1.0.v201802171654 [470]'. The index should be rebuilt with Lucene 7.0.0
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.874
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.platform.doc.user_4.9.0.v20180905-1254 [379]'. The index should be rebuilt with Lucene 7.0.0
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.876
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.wst.xmleditor.doc.user_1.1.0.v201802171654 [483]'. The index should be rebuilt with Lucene 7.0.0
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.879
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.wst.xsdeditor.doc.user_1.0.800.v201711201733 [486]'. The index should be rebuilt with Lucene 7.0.0
!ENTRY org.eclipse.help.base 2 0 2018-11-20 23:10:42.881
!MESSAGE Unable to consume Lucene index from bundle 'org.eclipse.wst.sse.doc.user_1.2.0.v201802171654 [473]'. The index should be rebuilt with Lucene 7.0.0
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,28 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {
System.out.println("trop petit");
}
if (nombre>result) {
System.out.println("trop petit");
}
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(mybool);
}
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,29 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {
System.out.println("trop petit");
}
if (nombre>result) {
System.out.println("trop grand");
}
System.out.println("trop petit");
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result) && false;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(mybool);
}
}
}
@@ -0,0 +1,27 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {
System.out.println("trop grand");
}
System.out.println("trop petit");
}
}
}
@@ -0,0 +1,31 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1; i<=100; i+=2) {
bool mybool = false
for(intj )
}
}
}
@@ -0,0 +1,22 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
System.out.println(""));
}
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true}
}
if (mybool) {System.out.println(result);}
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(i);
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true}
}
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(result);}
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j++) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(mybool);
}
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
while(nombre != result){
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j++) {
if (i%j==0) {mybool=true;}
}
if (not mybool) {System.out.println(i);}
//System.out.println(mybool);
}
}
}
@@ -0,0 +1,36 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
}
}
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class WanaSayHello {
System.out.println("Hello world!");
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if j
}
}
}
}
@@ -0,0 +1,32 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true}}
}
}
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class ClassTest {
}
@@ -0,0 +1,27 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1, i<=100, i+=2)
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre = sc.nextInt();
while(nombre != result){
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,22 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result=5;
while(nombre=!result){
System.out.println(""));
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result);
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(result);}
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre = sc.nextInt();
do {
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result)
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j++) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
//System.out.println(mybool);
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result);
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
}
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class main {
System.out.println("Hello world!");
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class WanaSayHello {
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
while(nombre != result){
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(i)
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j++) {
if (i%j==0) {mybool=true;}
}
if (mybool==fase) {System.out.println(i);}
//System.out.println(mybool);
}
}
}
@@ -0,0 +1,29 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1; i<=100; i+=2) {
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
bool mybool = false;
for(int j=2; j<i; j+=2) {
if j
}
}
}
}
@@ -0,0 +1,31 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1; i<=100; i+=2) {
bool mybool = false;
for(intj )
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=1; i<=100; i+=2) {
bool mybool = false;
for(int j=1; j<i; j+=2) {
if
}
}
}
}
@@ -0,0 +1,33 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
}
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
while(nombre != result){
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,28 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {
System.out.println("trop petit");
}
if (nombre>result) {
System.out.println("trop grand");
}
}
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
do {
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result);
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,24 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int result = 5;
while(nombre != result){
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,36 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre = sc.nextInt();
do {
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result);
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
}
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,22 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre =! result){
System.out.println(""));
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=2; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(myboo);
}
}
}
@@ -0,0 +1,38 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
if (false) {
int result = 5;
int nombre;
do {
System.out.println("Veuillez saisir un nombre:");
nombre = sc.nextInt();
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
} while (nombre != result && false) ;
System.out.println("gg c'était bien: ");
System.out.println(result);
}
for(int i=3; i<=100; i+=2) {
boolean mybool = false;
for(int j=1; j<i; j+=2) {
if (i%j==0) {mybool=true;}
}
if (mybool) {System.out.println(i);}
System.out.println(mybool);
}
}
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class WanaSayHello {
System.out.println("Hello world!");
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class WanaSayHello {
System.out.println("Hello world!");
}
@@ -0,0 +1,5 @@
package myAwesomeFirstTestOnJava;
public class main {
}
@@ -0,0 +1,25 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("trop petit");
}
}
}
@@ -0,0 +1,26 @@
package myAwesomeFirstTestOnJava;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un nombre:");
int nombre = sc.nextInt();
int result = 5;
while(nombre != result){
if (nombre<result) {System.out.println("trop petit");}
if (nombre>result) {System.out.println("trop grand");}
System.out.println("wesh");
}
System.out.println("gg c'était bien: ");
System.out.println(result);
}
}
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
version=1
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\n<launchPerspectives/>\n
org.eclipse.debug.ui.cancel_launch_with_compile_errors=always
preferredTargets=default\:default|
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
resetSendMode=KEEP
resetSendModeOn=0
sendMode=NOTIFY
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.classpathVariable.JRE_LIB=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/rt.jar
org.eclipse.jdt.core.classpathVariable.JRE_SRC=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/src.zip
org.eclipse.jdt.core.classpathVariable.JRE_SRCROOT=
org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.junit.content_assist_favorite_static_members_migrated=true
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\n<vmSettings defaultVM\="52,org.eclipse.jdt.internal.launching.macosx.MacOSXType25,com.oracle.java.8u131.jdk" defaultVMConnector\="">\n<vmType id\="org.eclipse.jdt.internal.launching.macosx.MacOSXType">\n<vm id\="com.oracle.java.8u131.jdk" name\="Java SE 8 [1.8.0_131]" path\="/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home"/>\n<vm id\="com.oracle.java.8u111.jdk" name\="Java SE 8 [1.8.0_111]" path\="/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home"/>\n</vmType>\n</vmSettings>\n
@@ -0,0 +1,13 @@
content_assist_disabled_computers=org.eclipse.jdt.ui.textProposalCategory\u0000org.eclipse.recommenders.calls.rcp.proposalCategory.templates\u0000org.eclipse.mylyn.java.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000org.eclipse.recommenders.chain.rcp.proposalCategory.chain\u0000
content_assist_number_of_computers=19
content_assist_proposals_background=255,255,255
content_assist_proposals_foreground=0,0,0
eclipse.preferences.version=1
org.eclipse.jdt.ui.formatterprofiles.version=14
org.eclipse.jdt.ui.text.code_templates_migrated=true
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
org.eclipse.jdt.ui.text.custom_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
org.eclipse.jdt.ui.text.templates_migrated=true
spelling_locale_initialized=true
useAnnotationsPrefPage=true
useQuickDiffPrefPage=true
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.m2e.discovery.pref.projects=
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
mylyn.attention.migrated=true
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
org.eclipse.mylyn.java.ui.run.count.3_10_0=1
org.eclipse.mylyn.java.ui.run.count.3_1_0=1
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true
@@ -0,0 +1,5 @@
eclipse.preferences.version=1
migrated.task.repositories.secure.store=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true
org.eclipse.mylyn.tasks.ui.welcome.message=true
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
overviewRuler_migration=migrated_3.1
@@ -0,0 +1,5 @@
PROBLEMS_FILTERS_MIGRATE=true
eclipse.preferences.version=1
platformState=1542751707868
quickStart=false
tipsAndTricks=true
@@ -0,0 +1,3 @@
//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery;
eclipse.preferences.version=1
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/myAwesomeFirstTestOnJava/src/myAwesomeFirstTestOnJava/TheMain.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_EXCLUDE_TEST_CODE" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="myAwesomeFirstTestOnJava.TheMain"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="myAwesomeFirstTestOnJava"/>
</launchConfiguration>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.debug.ui.SCOPED_SAVE_SELECTION_DIALOG">
<item value="289" key="DIALOG_WIDTH"/>
<item value="1|.AppleSystemUIFont|11.0|0|COCOA|1|.AppleSystemUIFont" key="DIALOG_FONT_NAME"/>
<item value="350" key="DIALOG_HEIGHT"/>
</section>
<section name="org.eclipse.debug.ui.LAUNCH_CONFIGURATIONS_DIALOG_SECTION">
<item value="800" key="DIALOG_WIDTH"/>
<item value="1|.AppleSystemUIFont|11.0|0|COCOA|1|.AppleSystemUIFont" key="DIALOG_FONT_NAME"/>
<item value=", " key="org.eclipse.debug.ui.EXPANDED_NODES"/>
<item value="762" key="org.eclipse.debug.ui.DIALOG_SASH_WEIGHTS_2"/>
<item value="640" key="DIALOG_HEIGHT"/>
<item value="237" key="org.eclipse.debug.ui.DIALOG_SASH_WEIGHTS_1"/>
</section>
</section>

Some files were not shown because too many files have changed in this diff Show More