import java.Scanner; public class Sums { public static void main (Stringargs) { final int PER_LINE = 5; int value, limit, sum, count = 0; Scanner…

Design and implement an application that reads an integer valueand prints the sum of all even integers between 2 and the inputvalue, inclusive. Print an error message if the input value is lessthan 2. Prompt the user accordingly.This is what I have, but my instructor said this isn’t right… I have no clue what to do now.