Sprawdź, czy obiekt to ciąg 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
}