0

hi we have a programming assignment which computes the volume of a barrel. I don't have a compiler yet and java is not yet recognized by my computer yet because I haven't downloaded any JDK yet because I don't know which one to download...Here's my code so far...Please just review my codes because I can't test them and this is my first programming ass in java..so i'm still a newbie..

```
import java.util.Scanner;
public class A1{
public static void main(String args[])
{
double h, r1, r2; byte b;
Sanner input = new Scanner(System.in);
System.out.println("Enter r1 & r2");
b = input.nextByte();
r1 = input.nextDouble();
r2 = input.nextDouble();
System.out.print("Volume Of the barrel is= "
+ (h*Math.Pi*(((2*r1)*(2*r1)) + ((r2)*(r2))) / 3));
}
}
```