APISonar


java.util.ArrayList.substring

> java > util > ArrayList > substring
java APIs util APIs ArrayList APIs substring APIs

Example 1
private ArrayList<ProducteevUser> users = null;

    public static String getUserFromDashboard(StoreObject dashboard, long userId) {
        String users = ";" + dashboard.getValue(USERS); //$NON-NLS-1$
        int index = users.indexOf(";" + userId + ","); //$NON-NLS-1$ //$NON-NLS-2$
        if(index > -1)
            return users.substring(users.indexOf(',', index) + 1,
                    users.indexOf(';', index + 1));
        return null;
    }