/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.lang.reflect.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{

Map<String,Object> someMap = new LinkedHashMap<>();
someMap.put("someKey", "someValue");
Map.Entry<String,Object> entry = someMap.entrySet().iterator().next();

System.out.println(entry.getValue()); // normal access is fine

Method getter = Map.Entry.class.getMethod("getValue");
System.out.println(getter.invoke(entry)); //2 


	}
}