Examness

Beginner Java

2 latihan · dalam urutan pembelajaran

  1. 1Sum the even numbersWrite `static long sumEven(int[] a)` returning the sum of the even values only. An empty array sums to 0; negative evens count.arraysmoduloloops8m
  2. 2Reverse a stringWrite `static String reverse(String s)` returning the characters in reverse order.StringBuilderimmutability7m