(Object str, Object target)
| 499 | } |
| 500 | |
| 501 | public static int getIndexOf(Object str, Object target) { |
| 502 | if (str instanceof List<?>) { |
| 503 | return ((List<?>) str).indexOf(target); |
| 504 | } else if (str instanceof String && target instanceof String) { |
| 505 | return ((String) str).indexOf((String) target); |
| 506 | } else { |
| 507 | return -1; |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | public static Object parseInt(Object a) { |
| 512 | try { |
no outgoing calls