OK im kinda new in java and i made this averaging program in one class, but now if i want to like call it from another class, then how do i do it?I tryed some object stuff but its hard to understand for.
this is the code and i want this program to start when i call it.

```
    package Gangsta;
import java.util.Scanner;

public class okidoki {
    public static void main(String []args){
        Scanner input = new Scanner(System.in);

        double average, tests, grades, total = 0;
        int cunter = 1, start = 0;

        System.out.println("Press 2 to start averaging, or press 1 to end");

        start = input.nextInt();
        while (cunter<start){
        System.out.println("Enter how many tests u have");
        tests = input.nextDouble();

        System.out.println("Enter tests grades");
        int counter = 0;
        while (counter<tests){
            counter++;
            grades = input.nextDouble();
            total = grades+total;
        }
            average = total/tests;
                System.out.println(average);
        System.out.println("Press 3 to end or 1 to average again");
        cunter = input.nextInt();}

    }

}

```

this is the code where i want to execute it

```
    package Gangsta;

public class tuna {
    public static void main(String []args){
        okidoki okidokiObject = new okidoki();
        System.out.println(okidokiObject);
    }

}

```