This program may not show the results when the input number is 2. But I think it can be solved by changing the two for loopings for (i=1; i <= num; i++ ) and
for (j=2; j<i; j++). This is my suggestions. With best wishes.

getting random number in java
getting random number in java getting random number in java
Hi... and scaling the random number in my Java Random number eample. but for some reason... to generate the random number in Java
Thanks in Advance

prime number - Java Beginnersprime number this project is to determine if a phone number is a primenumber. if the number is a primenumber then print a message to the effect. if the number is not a primenumber then print the prime factors of the number

number of stairs - Java Beginnersnumber of stairs 1. Write a program that prints an n-level stair case made of text. The user should choose the text character and the number...();
}
}
}
-----------------------------------
read for more information,
http://www.roseindia.net/java/master

Magic number in java
Magic number in java Hi.. Can any one tel how to watch a magic number of a program?
import java.util.*;
class MagicNumber...);
System.out.print("Enter the number: ");
int num =input.nextInt();
int b=0,x

perfect number - Java Beginners
perfect number An integer number is said to be a perfect number.... For example, 6 is a perfect number because 6 = 1+2+3. Write a method perfect that determines if parameter number is a perfect number. Use this method

Magic number Java Program
Magic numberJava Program write a program that guesses what number the user is thinking of. Below is a sample transcript:
Think of a number between 1 and 255.
I will guess the number you are thinking of.
1 3 5 7 9 11 13 15 17

Convert Number to Roman Number Using JavaJava Convert Number to Roman Numerals
In this section, you will learn how to convert the number to roman
number. To do this, we have created a class... and the method convertIntegerToRoman(int n)
convert the specified number into roman

Java reverse numberJava reverse number
In this tutorial, you will learn how to reverse a number in java.
In java, you can use arithmetic operators like division operator(/) and
remainder operator(%) to reverse the number. The division operator returns

from number to word
from number to word i want to know weather there is any method that can be use in changing value from number to word. Example if i write ten thousand, it will automatically be written as 10000.
Java convert number

java number to word - Java Beginnersjavanumber to word Can somebody please fix this to come out with the word, not the number 23?
import java.util.Scanner;
public class... " +
"position followed by 5 integers \nspecifying the number

Prime Number program in JavaPrimeNumber program in Java will print the prime numbers between 1 to any given number.
PrimeNumber is a number that is not divisible by any number other... automatically prints PrimeNumber starting from 1 to 50.
Example of PrimeNumber

How to format number in Java?
Learn about the code of formatting the number in Java
This tutorial explains you how to format the number in Java. There are number
of situations where we need the number to be formatted in many different
formats. Depending the format

Java get number of ProcessorsJava get number of Processors
&nbsp... of processors available in
Java Virtual Machine.
To display the number...("Number of processors available to the Java Virtual Machine