repositories
/
TP_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.
[TP_POO.git]
/
Entiers
/
Entiers.java
diff --git
a/Entiers/Entiers.java
b/Entiers/Entiers.java
index c878f631f68df145245bfd0a76ced4fef095a790..4eddd73f6e79aef06c6c64b74a814ffcc524d409 100644
(file)
--- a/
Entiers/Entiers.java
+++ b/
Entiers/Entiers.java
@@
-1,6
+1,6
@@
class Entiers {
class Entiers {
- private int
int_array[]
;
+ 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) {