repositories
/
Project_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exo2 & 3: Think object and add exo3 code from A to B.
[Project_POO.git]
/
exo3
/
Entiers.java
diff --git
a/exo3/Entiers.java
b/exo3/Entiers.java
index 61b330f62f6c9284d89963ab2bbab03cccf545b5..0d8caa1fd040d27aa4e90cfe4760bad56ab97676 100644
(file)
--- a/
exo3/Entiers.java
+++ b/
exo3/Entiers.java
@@
-1,5
+1,5
@@
-class Entiers {
+
public
class Entiers {
private int int_array[];
private int array_size;
private int current_size;
private int int_array[];
private int array_size;
private int current_size;
@@
-20,7
+20,7
@@
class Entiers {
return current_size;
}
return current_size;
}
- Entiers(int size) {
+
public
Entiers(int size) {
int_array = new int[size];
setSize(size);
setCurrentSize(0);
int_array = new int[size];
setSize(size);
setCurrentSize(0);
@@
-67,7
+67,7
@@
class Entiers {
return middle;
else if (value > int_array[middle])
return binarySearch((middle + 1), last, value);
return middle;
else if (value > int_array[middle])
return binarySearch((middle + 1), last, value);
- return binarySearch(first, (middle -1), value);
+ return binarySearch(first, (middle -
1), value);
}
public boolean supprimer(int value) {
}
public boolean supprimer(int value) {