Latest Posts
Showing posts with label JAVA program. Show all posts
Showing posts with label JAVA program. Show all posts
Develop a Java program to echo every line entered by the user. Terminate the program when the line is empty
Write a program to display a string "Java Applet" on applet window using font "Times New Roman", size as 14 and style as BOLD+ITALIC. The string should be passed as parameter.
23:31
0
Develop a java program to create two threads, one thread prints numbers from 1 to 10 and the other thread prints numbers from 10 to 1. First Thread should transfer control to second thread after printing second number
23:29
0
Develop a java program to create two threads such that one thread will print odd numbers and the other thread will print even numbers between 1 to 20 numbers.
23:28
0
Write a Java program to accept a number from the user and throw an exception if the number is not even number.
23:28
0
Write a program to accept a password from the user and throw 'AuthenticationFailure' execption if the password is incorrect
23:27
0
Develop a program to create a class "Fruits" with the data members 'countable' (values=Yes/No) and a method 'display()'. Derive a class "Watermelon" having data members 'price', 'quantity' and method 'show()'. Initialize & display the information for 3 objects of "Watermelon".
23:23
0
Develop a program to create a class "Bird" with the data members 'category' and a method 'show()'. Derive a class "Parrot" with the data members 'no_of_parrots' and a method 'show()'. Initialize using constructor and display the information.
23:23
0
Develop a java program to create a class "Book" having data members 'author', 'title', & 'publisher'. Derive a class "BookInfo" having data members 'price', 'stock position' and a method 'show()'. Initialize and display the information for 3 objects of "BookInfo".
23:22
0
Implement a Java program to accomplish the following task using Vector Class 1. To add two integers, two float, two characters, two string objects. 2. To search a particular object of the Vector. 3. To display all objects along with their index position. (for eg. Character 'A' is present at position 4 in the Vector). 4. To delete all objects from Vector.
23:19
0
Write a Java program to implement a vector that accepts five elements from the command line and store them in vector and display the objects stored in a vector
23:18
0
Implement a Java program to accomplish the following task using String and StringBuffer class: 1. To search a word inside a string 2. To search the last position of a substring 3. To compare two strings 4. To print reverse of a string
23:17
0
Write a Java program to find all the substring and print them. For example subsrings of "fun" are: "f", "fu", "fun", "u", "un", and "n". Use substring method of String class to find substring
23:17
0
Subscribe to:
Posts
(
Atom
)