AP Notes, Outlines, Study Guides, Vocabulary, Practice Exams and more!

Java

Java Code for Finding the Factorial of a Number

Subject: 
Rating: 
0
No votes yet

Java? ?code? ?for? ?finding? ?the? ?factorial? ?of? ?an? ?entered? ?number 1). ? ?/** ? ?? ?*? ?Enter? ?Name ? ?? ?*? ?Enter? ?Class? ?Period ? ?? ?*? ?Teacher? ?Name ? ?? ?*? ?Enter? ?Date ? ?? ?*/ class? ?Factorial{ public? ?static? ?void? ?main(String? ?args[]){ ? ?int? ?LetterI,fact=1;? ?? ?//declare? ?integers ? ?int? ?number=5;? ?//enter? ?number? ?to? ?find? ?the? ?factorial? ?of ? ?? ?for(LetterI=1;LetterI<=number;LetterI++){ fact=fact*LetterI; ? ?} System.out.println("Factorial? ?of? ?"+number+"? ?is:? ?"+fact);? ?? ?? ?? ?//displays? ?the? ?factorial? ?of? ?the number ? ?} }

Java Overview

Subject: 
Rating: 
0
No votes yet

The core Java platform is the Java 2 Platform, Standard Edition or J2SE. At the foundation of the J2SE Platform is the Java Runtime Environment (JRE). The JRE runs the applications and applets coded in Java on a variety of platforms The second major component of the J2SE is the Java 2 Software Development Kit (SDK). It contains the JRE along with several other tools for developing Java applications and other applets. These tools include the Java compiler and debugger. The first step in creating a Java application is writing the Java source code in a text editor. Before you run the Java program that you have created, you need to compile it. You can do this using any machine that has a Java compiler installed.
Subscribe to RSS - Java

Need Help?

We hope your visit has been a productive one. If you're having any problems, or would like to give some feedback, we'd love to hear from you.

For general help, questions, and suggestions, try our dedicated support forums.

If you need to contact the Course-Notes.Org web experience team, please use our contact form.

Need Notes?

While we strive to provide the most comprehensive notes for as many high school textbooks as possible, there are certainly going to be some that we miss. Drop us a note and let us know which textbooks you need. Be sure to include which edition of the textbook you are using! If we see enough demand, we'll do whatever we can to get those notes up on the site for you!