OpenLayers3 Getting mouse coordinates as a string?

I can use this set of functions to show the Lat and Lon in the top right corner of the map.
OLMousePositionControl mousePos = new OLMousePositionControl();
mousePos.projection = Projections.EPSG4326;

Is there any way I can get the mouse position as a string or double??
I’ve searched online for a while and tried to implement some javascript to get the div value ol-mouse-listener but its not working.
Any way to System.out.println(); the users mouse coordinates would be a great help. I can manipulate them after but I can’t even get them as a String.

Is this impossible??