public class TE1_ah_ah {
//Only whats in the MAIN method will be run
public static void main(String[] args) {
spikes(); //this will print out whats defined in the spikes method
//to print victry contents, simply type victry(); uncommented etc etc
}
public static void victry() {
System.out.println("////////////////////");
System.out.println("||Victory is mine!||");
System.out.println("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\");
}
public static void spikes() {
System.out.println("\\/");
System.out.println("\\\\//");
System.out.println("\\\\\\///");
System.out.println("///\\\\\\");
System.out.println("//\\\\");
System.out.println("/\\");
}
public static void difference() {
System.out.println("What is the difference between \n a ‘ and a \"? Or between a \" and a \\\"? \n \nOne is what we see when we’re typing our program. \nThen other is what appears on the \' console.\" ");
}
public static void egg() {
System.out.println(" _______");
System.out.println(" / \\");
System.out.println("/ \\");
System.out.println("-\"-'-\"-'-\"-");
System.out.println("\\ /");
System.out.println(" \\_______/");
}
public static void eggs() {
drawTop();
drawBottom();
drawCrack();
drawTop();
drawBottom();
drawCrack();
drawBottom();
drawTop();
drawCrack();
drawBottom();
}
public static void drawTop() {
System.out.println(" _______");
System.out.println(" / \\");
System.out.println("/ \\");
}
public static void drawCrack() {
System.out.println("-\"-'-\"-'-\"-");
}
public static void drawBottom() {
System.out.println("\\ /");
System.out.println(" \\_______/");
}
public static void starFigures() {
drawRowsX();
System.out.println();
drawRowsX();
drawRows();
System.out.println();
drawStack();
drawRowsX();
}
public static void drawRowsX() {
drawRows();
System.out.println(" * * ");
System.out.println(" * ");
System.out.println(" * * ");
}
public static void drawRows() {
System.out.println("*****");
System.out.println("*****");
}
public static void drawStack() {
System.out.println(" * ");
System.out.println(" * ");
System.out.println(" * ");
}
}
When you post in the future, use tags to make the code readable.
Your code is fine, the reason you had no output was because you didn't specify anything to be printed.
The 'main' method of a class is what gives you results, and as it was empty, the program would run and end without displaying anything.
I've put an example back into your code which will print the contents of your spikes() method.
I suggest you read up more on Java before attempting any more programs as it will help you greatly.
Oracle offer a great tutorial:
The Java™ Tutorials