0% found this document useful (0 votes)
9 views1 page

Java Programming Slip Solutions Guide

Uploaded by

shelkearjun1221
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Java Programming Slip Solutions Guide

Uploaded by

shelkearjun1221
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Slip Solutions (Condensed One-Page Version)

--------------------------------------------------
Slip 2A: Display vowels from string
import [Link];class Slip2A{public static void main(String args[]){DataInputStream dr=new DataInputStream([Link]);try{[Link]("Enter String : ");String str=[Link]
Slip 2B: Mouse Events
import [Link].*;import [Link].*;class MyFrame extends Frame{TextField t,t1;MyFrame(String title){super(title);setLayout(new FlowLayout());Panel p=new Panel();[Link](new GridL
Slip 3A: Armstrong number (static)
import [Link].*;class Slip3A{static int temp;public static void main(String args[]){int n,r,sum=0;DataInputStream dr=new DataInputStream([Link]);try{[Link]("Enter Number");n=I
Slip 3B: Abstract Shape (Cone/Cylinder)
import [Link].*;abstract class Shape{int a,b;Shape(int x,int y){a=x;b=y;}abstract double area();abstract double volume();}class Cone extends Shape{Cone(int x,int y){super(x,y);}double area
... (content continues similarly for all slips condensed)

You might also like