public class Produtos
{
String object1 = "GPU";
String object2 = "Processador";
String object3 = "SSD";
}
class GPUsNvidia
{
boolean setNvidiaGaming = false;
boolean setNvidiaProcess = false;
String [] placas = { "rtx", "tesla" }; //Token error here
for (int i = 0; i < placas.length; i++)
{
if (placas[i].equals("rtx"))
{
setNvidiaGaming = true;
}
if (placas[i].equals("tesla"))
{
setNvidiaProcess= true;
}
}
if (setNvidiaGaming == true)
{
final String [] subObject1 = { "2060", "2070", "2080" };
}
}
Где ошибка? Я новичок в Java. Полная ошибка
{
"resource": "/C:/Users/User/Documents/java_lojavirtual/Produtos.java",
"owner": "_generated_diagnostic_collection_name_#1",
"code": "1610612967",
"severity": 8,
"message": "Syntax error on token \";\", { expected after this token",
"source": "Java",
"startLineNumber": 13,
"startColumn": 42,
"endLineNumber": 13,
"endColumn": 43
}