Prompt the user to enter the four assessments (Class & Cycle tests) and set the object using the setValues method
import java.util.*;
import org.javatuples.KeyValue;
class GfG {
public static void main(String[] args)
{
// Creating a KeyValue object
KeyValue<Integer, String> kv
= KeyValue.with(Integer.valueOf(1),
"l");
// Using setValue() method
KeyValue<Integer, String> kv1 = kv.setValue("");
// Printing the returned KeyValue
System.out.println(kv1);
}
}
Comments
Leave a comment