" Error: Could not find or load main class"
Hi. I was practicing making classes on a program. And when i tried to call the method, it said that the program could not find or load main class. I will post the code below. someone help me please. Thanks for your attention. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package javaapplication3; interface car { void speedup(int accelaratedspeed); void usebrake(int brakeefficiency); void changegear(int changedgear); } public class TOYOTAcar implements car { public void main(String[] args) { printstates(); } int size = 0; int speed = 0; String color = "unknown"; int gear = 1; public void setsize(int newsize) { size = newsize; } @Override public void speedup(int accelaratedspeed) { speed = speed + accelaratedspeed; } @Override public void usebrake(int brakeefficiency) { speed = speed - brakeefficiency; } @Override public void changegear(int changedgear){ gear = changedgear;} public void printstates () { System.out.println("size:"+ size +" speed:" + speed + " Gear:" + gear); }}