TELP/WA/LINE : 08813236918

Creating java class sample program

this is a sample creating simple class java program using a Program Visualization application "jeliot",
so simple but if dont know how to create it, it become so confusing.

java class branching sample program

import jeliot.io.*;

class Example
{
private int i = 0;

public void displayData() {

for (int j=0; j<3; j++)
{
for (i=0; i<3; i++)
{
Output.println(i+ " test");
}
}

}
}

public class ExampleApp
{
public static void main (String[] args)
{
Example example1 = new Example();
example1.displayData();
}
}

java class do while sample program


import jeliot.io.*;

class Example
{
  private int i = 0;
 
    public void displayData() {
      
        do
        {
            Output.println(i+ " test");
            i=i+1;
        }
        while (i<5);
      
    }
}

public class ExampleApp
{
    public static void main (String[] args)
    {
    Example example1 = new Example();
    example1.displayData();
    }
}


java class FOR sample program


import jeliot.io.*;

class Example
{
  private int i = 0;
 
    public void displayData() {
      
        for (i=0; i<5; i++)
        {
            Output.println(i+ " test");
        }
      
    }
}

public class ExampleApp
{
    public static void main (String[] args)
    {
    Example example1 = new Example();
    example1.displayData();
    }
}


Correct me if i'm wrong...
see you in the next post


FOLLOW and JOIN to Get Update!

Social Media Widget SM Widgets




Demo Blog NJW V2 Updated at: Monday, October 11, 2010

0 comments:

Post a Comment

ABOUT

Melayani:
1.Pembuatan aplikasi web
2.File finder (jasa pencari data)
3.Konsultasi IT, Cinta, Rumahtangga, Jasmani dan Rohani
4.Kerjasama dibidang IT

sms dan email untuk pelayanan lebih cepat
no HP 08813236918 Whatsapp
Email: Nimodx@gmail.com

Followers