public class Tester{
public static void main(String[]args){
Order=OrderID();//*order connects to the order id
FormOfPayment1();//*form of payment1
FomOfPayment2();//*form of payment2
System.out.println("Welcome!!!...These are our available Shirts"+Shirts[]);//*to display the shirts available
My Order= new Order();//* to record new orders
}
}
Sunday, February 8, 2009
Class Catalog
public class Catalog{
public static void main(String[]args){
public String Shirt;
public String Sandals;
public String Textiles;
public Catalo(String Shirt, String Sandals, String Textile){
Shirt=S;
Sandals=s;
Textile=T;
}
}
}
public static void main(String[]args){
public String Shirt;
public String Sandals;
public String Textiles;
public Catalo(String Shirt, String Sandals, String Textile){
Shirt=S;
Sandals=s;
Textile=T;
}
}
}
Wednesday, February 4, 2009
*/import java.util.Scanner;public class CubeTester{
/** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner scan= new Scanner(System.in); Cube MyCube1= new Cube(5,5,5); Cube MyCube2= new Cube(); System.out.println("The Volume of the cube is" +volume); System.out.println("Enter a value for your width"); double w =scan.nextDouble(); System.out.println("Enter a value for your heigth"); double h =scan.nextDouble(); System.out.println("Enter a value for your length"); double=scan.nextDouble(); double 1=scan.nextDouble(); MyCube2.setDimensions((w,h,l)); System.out.println(The volume of the cube is" +volume);}
/** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner scan= new Scanner(System.in); Cube MyCube1= new Cube(5,5,5); Cube MyCube2= new Cube(); System.out.println("The Volume of the cube is" +volume); System.out.println("Enter a value for your width"); double w =scan.nextDouble(); System.out.println("Enter a value for your heigth"); double h =scan.nextDouble(); System.out.println("Enter a value for your length"); double=scan.nextDouble(); double 1=scan.nextDouble(); MyCube2.setDimensions((w,h,l)); System.out.println(The volume of the cube is" +volume);}
public class Cube {public static void main(String[]args){
private double area; private double width; private double heigth; private double length;
public void setLength(double l){ length=l; } public void setWidth(double w){ width=l; } public void setHeigth(double h){ heigth=l; public double displayVolume(){ double volume=length*width*heigth; System.out.println("The Volume of the cube is"+volume);
} }
}}
private double area; private double width; private double heigth; private double length;
public void setLength(double l){ length=l; } public void setWidth(double w){ width=l; } public void setHeigth(double h){ heigth=l; public double displayVolume(){ double volume=length*width*heigth; System.out.println("The Volume of the cube is"+volume);
} }
}}
Subscribe to:
Posts (Atom)