Examness
Free practice questions for every exam
EN
English
Log In
Sign Up
Home
Practice
Exams
AI Teachers
Interview
Code Lab
Fun Learn
Contact
💬
Give feedback
Code Lab
/
Java
/
Beginner
Beginner Java
2 exercises · in teaching order
1
Sum the even numbers
Write `static long sumEven(int[] a)` returning the sum of the even values only. An empty array sums to 0; negative evens count.
arrays
modulo
loops
8m
2
Reverse a string
Write `static String reverse(String s)` returning the characters in reverse order.
StringBuilder
immutability
7m
💬
Give feedback