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
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










