All the sources codespage 71
Java
March 06, 2014 pm31 23:24
#96
public boolean isNegative(int i) {
String s = Integer.parseInt(i);
return s.startsWith("-");
}
C++
March 06, 2014 pm31 23:24
#95
// I don't know if this is usefull, but i'am too scared to delete it
Java
March 06, 2014 pm31 23:23
#94
int length = 0;
for(int idx = 0; idx < a.length; i++) {
length++;
}
System.out.println("length is : " + length);