Skip to content
Snippets Groups Projects
Commit 0a69c473 authored by Alexandre MAINTIER's avatar Alexandre MAINTIER
Browse files

mise à jour générale

parent 2a2c9954
No related branches found
No related tags found
No related merge requests found
Showing
with 25 additions and 13 deletions
......@@ -2,7 +2,7 @@ class Book{
String author;
String title;
int year;
Book(String author, String title, int year){
this.author = author;
this.title = title;
......@@ -19,4 +19,4 @@ class Book{
}
return false;
}
}
\ No newline at end of file
}
class HighScore{
Score[] top;
HighScore(){
top = new Score[100];
}
......@@ -16,7 +16,7 @@ class HighScore{
resultat++;
}
}
return resultat;
return resultat;
}
public String toString(){
......@@ -27,4 +27,4 @@ class HighScore{
resultat = resultat + "**" + this.getNbFreeSlot() + "** free slots";
return resultat;
}
}
\ No newline at end of file
}
......@@ -3,6 +3,7 @@ class Score{
int score;
String timestamp;
Score(String name, int score, String timestamp){
this.name = name;
this.score = score;
......@@ -12,4 +13,4 @@ class Score{
public String toString(){
return "(" + this.timestamp + ") " + this.name + " = " + this.score;
}
}
\ No newline at end of file
}
class UseBook{
public static void main(String args[]){
Book book = new Book("chapeau", "pointu", 1992);
System.out.println(book);
}
}
\ No newline at end of file
}
......@@ -17,4 +17,4 @@ class UseBook2{
}
System.out.println("le plus vieux est : " + vieux);
}
}
\ No newline at end of file
}
public class UseHighScore {
}
public class UseHighScore2 {
}
public class UseHighScore3 {
}
public class UseHighScore4 {
}
......@@ -43,4 +43,4 @@ class Competitor{
}
return false;
}
}
\ No newline at end of file
}
public class Dice {
}
public class DicePlayer {
}
public class OneDicePlayerGame {
}
public class UseCompetitor {
}
......@@ -15,4 +15,4 @@ public class UseCompetitor2 {
System.out.println("Clement plus rapide que reference : " + clement.time + "vs" + reference.time + "->" + clement.isFaster(reference));
System.out.println("Dora plus rapide que reference : " + dora.time + "vs" + reference.time + "->" + dora.isFaster(reference));
}
}
\ No newline at end of file
}
public class UseDice {
}
......@@ -32,4 +32,4 @@ public class Card{
public String toString(){
return "couleur = " + this.color + ", rang = " + rank;
}
}
\ No newline at end of file
}
......@@ -2,4 +2,4 @@ package tp03;
public enum Color {
CLUB, DIAMOND, HEART, SPADE;
}
\ No newline at end of file
}
......@@ -2,4 +2,4 @@ package tp03;
public enum Rank {
SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE;
}
\ No newline at end of file
}
......@@ -3,3 +3,4 @@ package tp03;
public class Task {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment