Counting numbers up and down
Hi my name is John,
basically i try to write a program that can print this
but the i can print from 1 to 5 and i dont know how to go from 4,3,2,1 etc...
i am very new to java, a help would be greatful.
* Write a description of class Counting here.
* @author (your name)
* @version (a version number or a date)
public class Counting
// instance variables - replace the example below with your own
public int z = 5;
* Constructor for objects of class Counting
for (int x = 5; x >=1; x--)
for (int y = 1; y<=5; y++)
public static void main(String  args)
Counting ncounting = new Counting();
thanks in advance