Java Programming for Spatial Sciences