Periksa apakah objek adalah string java
Object foo = "";
if( foo instanceof String ) {
// do something String related to foo
}
Thankful Tuatara
Object foo = "";
if( foo instanceof String ) {
// do something String related to foo
}