Well you have not quite grasped the idea of method's and classes in
java.
You do not need to classes here.
This will do the trick:
public class myClass{
public void printMyText(){
System.out.println("M.A");
}
public static void main(String[] args){
printMyText();
}
}
save,exit and then compile this program using:
>javac myClass.java
then run it using java:
java myClass
That will work.
Hope you understood
P.S:You really do not need to put the System.out.println in its separate method as there is very little code. However it is a good example of using methods...