运算符 ||对于参数类型 boolean, String 未定义

Operator || is undefined for the argument type boolean, String

我正在尝试使用我拥有的 csv 文件创建平行坐标图。我试图制作的图表看起来像我在此处绘制的图像 -> DrawnGraph。我遇到的问题是这些国家/地区在 csv 文件中单独列出。我需要创建一个代码,将这些国家放在相应的大陆中。我尝试了下面的代码,但我不断收到 "The operator || is undefined for the argument type(s) boolean, String" 我意识到我打错了,但我不知道如何解决。请帮忙

    if(Country.equals("Aruba")||Country.equals("Argentina")||Country.equals("Bolivia")||Country.equals("Brazil")||Country.equals("Chile")||("Columbia")||Country.equals("Ecuador")||Country.equals("Guyana")||Country.equals("Paraguay")||Country.equals("Peru")||Country.equals("Suriname")||Country.equals("Uruguay")||Country.equals("Venezuela"))

您似乎在此处遗漏了 Country.equals

Country.equals("Chile")||("Columbia")||Country.equals("Ecuador")

将其添加进去,它应该可以工作。

顺便说一句,您还没有指定您使用的编程语言。你可能应该。