How to make a class in single file

Suppose i want to make a class Student{

int rollno;
String name;}
how to use this class in a online text editor like Coding Blocks IDE where we only have one file to write the whole code.

import java.util.*;

public class Main {

public static void main(String args[]) {

}

}

Paste this class as it is in the same file as the Main Class and it will work

Should i paste the student class between Main class and main function or above the main class.

above/ below Main Class will work

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.