repositories
/
Project_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup : fix C style array declaration.
[Project_POO.git]
/
exo3
/
Entiers.java
diff --git
a/exo3/Entiers.java
b/exo3/Entiers.java
index 61b330f62f6c9284d89963ab2bbab03cccf545b5..629cbb6591fda9d9f89c0e9ff816883d5ba2b7dc 100644
(file)
--- a/
exo3/Entiers.java
+++ b/
exo3/Entiers.java
@@
-1,6
+1,6
@@
-class Entiers {
- private int
int_array[]
;
+
public
class Entiers {
+ private int
[] int_array
;
private int array_size;
private int current_size;
private int array_size;
private int current_size;
@@
-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) {