Examness

Beginner Java

2件の課題 · 学習順

  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