mwanamasala
JF-Expert Member
- Jun 20, 2009
- 248
- 12
public class FishTankVolume
{
public static void main(String[] args)
{
int width = Integer.parseInt(args[2]);
int depth = Integer.parseInt(args[4]);
int height = Integer.parseInt(args[6]);
int volume = width * depth * height;
System.out.println("The volume of a tank with dimensions"
+ "(" + width + "," + depth + "," + height + ") "
+ "is " + volume);
}
}
I tried to run this code using Eclipse IDE without success!Jibu linatakiwa liwe 48.
Kuna makosa gani kwenye hiyo code?
{
public static void main(String[] args)
{
int width = Integer.parseInt(args[2]);
int depth = Integer.parseInt(args[4]);
int height = Integer.parseInt(args[6]);
int volume = width * depth * height;
System.out.println("The volume of a tank with dimensions"
+ "(" + width + "," + depth + "," + height + ") "
+ "is " + volume);
}
}
I tried to run this code using Eclipse IDE without success!Jibu linatakiwa liwe 48.
Kuna makosa gani kwenye hiyo code?