Witam. Mam taki kod:
package wot.AmxElc;
public class AmxElc
{
public interface AmxElcTurrentArmour
{
int frontTurrentArmour = 20;
int sideTurrentArmour = 15;
int backTurrentArmour = 10;
}
public interface AmxElcBodyArmour
{
int frontBodyArmour = 25;
int sideBodyArmour = 10;
int backBodyArmour = 15;
}
public interface AmxElcGun
{
String caliber = "90mm";
String APPenetration = "120mm";
String APCRPenetration = "150mm";
String HEPenetration = "45mm";
int ApAndApcrDemage = 240;
int HEDemage = 360;
}
public static void main(String[] args)
{
AmxElc AmxElc = new AmxElc();
AmxElcTurrentArmour AmxElcTurrentArmour =new AmxElcTurrentArmour() {};
AmxElcBodyArmour AmxElcBodyArmour = new AmxElcBodyArmour() {};
AmxElcGun AmxElcGun = new AmxElcGun(){};
}
}
InteliJ przekreśla mi wszystkie Stringi w kodzie i pokzuje błąd:
Error: Could not find or load main class Strings2
Caused by: java.lang.ClassNotFoundException: Strings2
Coś jest pomieszane z Intelijem czy ja czegoś nie wpisałem?