Beruflich Dokumente
Kultur Dokumente
LAB#01 A18BSIT045
Object:Installation of Java
STEP 1
STEP 2
STEP 3
STEP 4
STEP 5
Page 3 of 9
STEP 6
STEP 7
STEP 8
STEP 9
STEP 10
Page 4 of 9
LAB#02 A18BSIT045
Coding:
class Print{
OUTPUT:
Page 5 of 9
LAB#03 A18BSIT045
Coding:
{ float Perimeter=(2*(Height+Width));
{ System.out.println(Perimeter);
float Height=c.nextFloat();
}
System.out.println("Width");
}
OUTPUT:
Page 6 of 9
LAB#04 A18BSIT045
OUTPUT:
Coding of Static:
OUTPUT:
Page 7 of 9
LAB#05 A18BSIT045
1) Explicit Typecasting
2) Implicit Typecasting
OUTPUT:
OUTPUT:
Page 8 of 9
LAB#06 A18BSIT045
{ System.out.println("T }
he greatest number is
public static void " +a); else
main (String args[])
{
{
}
Scanner z=new System.out.println("T
Scanner(System.in); he greatest number is:
" +c);
System.out.println("E else if(b>=a &&
nter three numbers"); b>=c)
int a=z.nextInt(); { }
int b=z.nextInt(); }
System.out.println("T
int c=z.nextInt(); }
OUTPUT:
Page 9 of 9
OUTPUT: