Python到Java(在Java中添加df吗?)

我需要帮助将此代码更改为Java语法。我不是很熟悉Java。

for obj in localized_object_annotations:
    if 'Car' in obj.name:
      df=df.append(
            dict(
                    name=obj.name),
            ignore_index=True)

print('Number of cars :' ,len(df))
评论