main

A class contains attributes(objects,variables,etc) and methods(pieces of code).
The main method is the method which will run.
Place any code you want to run inside the main method.

        public class test
        {
                public static void main(String[] args)
                {
 
                }
        }