Eclipse format my code this way, means it puts the parameters one different lines:
nearByLocationsArray = getAddress( currentLocation.getLatitude(),
currentLocation.getLongitude(), 10).toArray(
new String[nearbyLocations.size()]);
nearbyLocations = gCoder.getFromLocation(latitude, longitude,
maxResults);
However, I seriously don’t like that I want to keep it simple like this in one line:
nearByLocationsArray = getAddress(currentLocation.getLatitude(),currentLocation.getLongitude(), 10).toArray(new String[nearbyLocations.size()]);
nearbyLocations = gCoder.getFromLocation(latitude, longitude,maxResults);
I tried looking for the appropriate option in the formatting settings but couldn't find, can anyone please help me in setting this up, please.