Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
/**
* Kusini Unguja, TZ -> Kusini_Unguja
* @param address
* @return
*/
public static String getConcatenatedCityFromAddress(String address) {
return address.replace(" ", "_").split(",")[0];
}
}