Note that there are some explanatory texts on larger screens.

plurals
  1. POI am a beginning java coder looking for help on how to import my .class or .java source file into an executable jar file
    text
    copied!<p>I was looking to surprise my parents with this nifty little program I made in jCreator at school, any and all help is appreciated. My problem is that any advanced instructions wouldn't be understood by myself, so I ask that you word your answer in a way a beginner would understand. I have access to the JDK at school so that shouldn't be a problem, please list any necessary materials I may need as well. Thanks!</p> <pre><code>import java.util.Scanner; public class Calender { public static void main(String args[]){ System.out.println("\nCALENDER.JAVA\n"); Scanner keyboard = new Scanner(System.in); System.out.println("Determine birthstone using numbers 1-12 represent calender months"); System.out.print("Enter Month Number ===&gt;&gt; "); int month = keyboard.nextInt(); System.out.println(); switch (month){ case 1: System.out.println("January Garnet"); break; case 2: System.out.println("February Amethyst"); break; case 3: System.out.println("March Aquamarine"); break; case 4: System.out.println("April Diamond"); break; case 5: System.out.println("May Emerald"); break; case 6: System.out.println("June Pearl / Alexandrite"); break; case 7: System.out.println("July Ruby"); break; case 8: System.out.println("August Peridot"); break; case 9: System.out.println("September Sapphire"); break; case 10: System.out.println("October Opal / Tourmaline"); break; case 11: System.out.println("November Citrine / Topaz"); break; case 12: System.out.println("December Tanzanite / Turquoise / Zircon"); break; default : System.out.println("This is not a valid entry."); } System.out.println(); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload