Archive for the ‘Example’ Category

Factorial In Java

This item was filled under [ Example, Java, Programming, Tutorial ]

Simple code “Factorial in Java”
public class Factorial {
public static long factorial( int n ) {
if( n <= 1 )
return 1;
else
return n * factorial( n - 1 );
}

public static void main( String [ ] args ) {
for( int i = 1; i <= 10; i++ )
System.out.println( factorial( i ) );
}
}

Continue reading...

Tagged with: [ , ]

Konversi Suhu

This item was filled under [ Example, Programming, Project, Visual Basic ]

Download Source Code :
==> Mirror 1
==> Mirror 2

Continue reading...

Loading (Text Base)

This item was filled under [ Example, Java, Programming ]

Loading Screenshot
Code :

class Loading
{
public static void main(String[] args)
{
for (int i=0; i<50; i++)
{
System.out.print((char)219);
[...]

Continue reading...

Tagged with: [ , , ]