Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Find out the prime number

In this section , you will learn how to find out whether a given number is prime or not.

Tutorial Details:

Here, first make a class and named as "Primenumber" and take an integer as num=11, and define an integer 'i' as the integer other than 1 and the given number. That means, i>2 and i
Now apply the "if" condition and if the reminder of the earlier equation comes "0", then the result will be not prime. Again the loop system will check the above condition until it has not satisfied from the starting point(2) to the end(10).


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/Prime_number.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Find out the prime number

View Tutorial:
Find out the prime number

Related Tutorials:

Integrating Databases
Integrating Databases
 
Commercial applications with Java
Commercial applications with Java
 
The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - Mar
The Volano Report: Which Java platform is fastest, most scalable? A JavaWorld exclusive! - JavaWorld - March 1999
 
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
 
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
 
An introduction to agents - JavaWorld June 1998
An introduction to agents - JavaWorld June 1998
 
Program your Palm in Java, Part 1: The PalmOS Emulator - JavaWorld November 1999
Program your Palm in Java, Part 1: The PalmOS Emulator - JavaWorld November 1999
 
Program your Palm in Java, Part 1: The PalmOS Emulator - JavaWorld November 1999
Program your Palm in Java, Part 1: The PalmOS Emulator - JavaWorld November 1999
 
Make bad code good - JavaWorld March 2001
Make bad code good - JavaWorld March 2001
 
Flex your grid layout
Flex your grid layout
 
Call JavaBean methods from JSP
Call JavaBean methods from JSP 2.0 pages
 
J2ME app development on the 6600
J2ME app development on the 6600 Introduction When you first look at the Nokia 6600, the first reaction is very predictable. wow! It is truely a good looking phone. A stunner. Let's find out if there's more to this phone than just good looks.
 
Eclipse 3.0 is out
Eclipse 3.0 is out Welcome to eclipse.org Eclipse is a kind of universal tool platform - an open extensible IDE for anything and nothing in particular.
 
Tuning garbage collection in the HotSpot JVM
Packing 100 megabytes of garbage into a 50 megabyte bag.
 
Koalog Constraint Solver v2.2 released
Koalog Constraint Solver v2.2 released What is Koalog Constraint SolverTM? Koalog Constraint SolverTM is a powerful JavaTM library for solving combinatorial optimization problems using Constraint Programming or Local Search. It provides cutting-edge te
 
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
 
Networking our whiteboard with servlets.
Find out how to easily replace the RMI and sockets networking layers with servlets.
 
Atricle Struts, JavaServer Faces, and Java Studio Creator:
The Evolution of Web Application Frameworks Sun Microsystems' Craig McClanahan, the creator of the Apache Struts Framework, co-specification lead for JavaServer Faces 1.0, and prime architect for Sun Java Studio Creator's new release, explains all three.
 
Updates to the Survey of J2ME Today
Give a consolidated big picture survey of J2ME terminology and technical origins.
 
Welcome to Java Developers paradise!
Welcome to Java Developers paradise! T his site contains many quality Java, JSP, RMI, MySQL downloads, tutorials, source codes and links to other java resources. We have large number of links to the tutorials on java which will help you learn java
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.