0% found this document useful (0 votes)
4 views

Assignment 5 question

Uploaded by

saykokiller826
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 5 question

Uploaded by

saykokiller826
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 5 question

1)Write a‘ java’ program to display characters from ‘A’ to ‘Z’.


2)Write a ‘ java’ program to copy only non-numeric data from one file to
another file.
3)Write a java program to display all the vowels from a given string.
4)Write a ‘java’ program to check whether given number is Armstrong or not.
(Use static keyword)
5)Define an abstract class Shape with abstract methods area () and volume
().Derive abstract class Shape into two classes Cone and Cylinder.Write a java
Programto calculate area and volume of Cone and Cylinder.(Use Super
Keyword.)
6)Write a java program to display alternate character from a given string.
7)Write a java program to display following pattern:
5
45
345
2345
12345
8) Write a java program to accept list of file names through command line.
Delete the files having extension .txt. Display name, location and size of
remaining files.
9)Write a java program to display transpose of a given matrix.
10)Write a java Program to display following pattern:
1
01
010
1010

11)Write a java program to count the frequency of each character in a given


string.

12)Write an applet application to display Table lamp. The color of lamp should
get change randomly.

13)Write a java program to display each String in reverse order from a String
array.

14)Write a java program to display multiplication table of a given number into


the List box by clicking on button.

15)Write a java program to accept ‘n’ integers from the user & store them in an
ArrayList collection. Display the elements of ArrayList collection in reverse
order.

You might also like