w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Error: Could not find or load main class vehicle.Vehicle
public class Vehicle

public static void main (String [] args)} // this is totally wrong
     // This not compile at least 
{

Actually parenthesis({}) you are using is totally wrong. Following structure should follow you. I am guessing that you are not using IDE to do coding. I suggest you to use IDE to do code.

public class MyClass{

 public static void main(String[] args){
   // main method
 }
 // some other method

}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.