Explore programs, questions, notes, and assignments for this subject
Write a Java program to create an interface Shape with the calculateArea() method. Create three classes Rectangle, Circle, and Triangle that implement...
Write a Java program that takes a number from the user, reverses it and checks whether it is palindrome or not....
Asked by Neelkumar Gohil on Feb 03, 2026
WAP to input string through command line and check each command line inputs and display only those strings which are in uppercase until any lower case string found.
Asked by Neelkumar Gohil on Feb 03, 2026
WAP to accept a string and rewrite it in alphabetical order. e.g. COMPUTER --- > CEMOPRTU
Asked by Neelkumar Gohil on Feb 03, 2026
WAP to find all rotations of a given string. e.g. Java --→ Java, avaJ,vaJa,aJav
Asked by Neelkumar Gohil on Feb 03, 2026
WAP to accept multiple strings and arrange them in ascending order
Asked by Neelkumar Gohil on Feb 03, 2026
WAP to accept a string and count total number of uppercase and lowercase characters in a string.
Asked by Neelkumar Gohil on Feb 03, 2026
Create a superclass, Student, and subclass, Grade. The superclass Student should have data members: name, ID, age, address.The superclass, Student should have at least one method: findGrade(double percent) . The purpose of the findGrade method is to take one parameter,percent (value between 0 and 100) and find grade.In the Student class this method should be empty as an abstract method. The Grade will inherit all data members of the Student class and override the method findGrade. Create a test class for above two classes. In the test class, create Grad object. For an object, provide percent and find grade and display the results of the findGrade method.
No assignments available yet.