@ requires x >= 0;
@ ensures \result == x * x;
public static int square(int x) {
return x * x;
}
@ requires x >= 0;
@ ensures \result == x * x;
public static int square(int x) {
return x * x;
}
@ requires x > 0 && y > 0;
@ ensures \result == x + y;
public static int add(int x, int y) {
return x + y;
}
add(5, 10);
@ requires arr != null;
@ ensures \result == (\sum int i; 0 <= i && i < arr.length; arr[i]);
public static int sum(int[] arr) {
int sum = 0;
for (int i = 0; i < arr.length; i++) {
sum += arr[i];
}
return sum;
}
@ requires x > 0;
@ ensures \result == x * 2;
public static synchronized int doubleValue(int x) {
return x * 2;
}
doubleValue(10);
Back-end App Developer
Front-end Web Developer
Full Stack Developer (Java)
Full Stack Developer (.Net)
Full Stack Developer (MEAN)
Full Stack Developer (MERN)
DevOps Engineer
Database Engineer (AzureSQL)
Database Engineer (Oracle)
Database Engineer (General)
Solution Architect (.NET)
Solution Architect (Java)
Solution Architect (Ruby)
Solution Architect (Python)
AI Engineer (Python)
Sr. AI Engineer (Python)
AI Strategist (Python)
Business Intelligence Engineer
Systems Analyst
Mainframe Developer (COBOL)
Mainframe Developer (General)