1.
Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer?
7. Write a program to perform string operations using String Buffer class: a) Length of a string b)
Reverse a string c) Delete a substring from the given string
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
2. Write a Java program to multiply two given matrices.
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
8. Write a java program that implements a multi-thread application that has three threads. First
thread generates random integer every 1 second and if the value is even, second thread computes
the square of the number and prints. If the value is odd, the third thread will print the value of cube
of the number.
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
5. Write a program to do String Manipulation using Character Array and perform the following string
operations:
a) String length
b) Finding a character at a particular position
c) Concatenating two strings
9. Write a threading program which uses the same method asynchronously to print the numbers 1
to 10 using Thread1 and to print 90 to 100 using Thread2.
6. Write a program to perform the following string operations using String class:
a) String Concatenation
b) Search a substring
c) To extract substring from given string
3. Write a Java program that displays the number of characters, lines and words in a text?
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
10. Write a program to demonstrate the use of following exceptions. a) Arithmetic Exception b)
Number Format Exception c) Array Index Out of Bound Exception d) Negative Array Size Exception++
+
1. Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer?
3. Write a Java program that displays the number of characters, lines and words in a text?
5. Write a program to do String Manipulation using Character Array and perform the following string
operations:
a) String length
b) Finding a character at a particular position
c) Concatenating two strings
2. Write a Java program to multiply two given matrices.
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
6. Write a program to perform the following string operations using String class:
a) String Concatenation
b) Search a substring
c) To extract substring from given string
1. Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer?
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
10. Write a program to demonstrate the use of following exceptions. a) Arithmetic Exception b)
Number Format Exception c) Array Index Out of Bound Exception d) Negative Array Size Exception++
+
5. Write a program to do String Manipulation using Character Array and perform the following string
operations:
a) String length
b) Finding a character at a particular position
c) Concatenating two strings
2. Write a Java program to multiply two given matrices.
3. Write a Java program that displays the number of characters, lines and words in a text?
6. Write a program to perform the following string operations using String class:
a) String Concatenation
b) Search a substring
c) To extract substring from given string
2. Write a Java program to multiply two given matrices.
7. Write a program to perform string operations using String Buffer class: a) Length of a string b)
Reverse a string c) Delete a substring from the given string
6. Write a program to perform the following string operations using String class:
a) String Concatenation
b) Search a substring
c) To extract substring from given string
4. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
9. Write a threading program which uses the same method asynchronously to print the numbers 1
to 10 using Thread1 and to print 90 to 100 using Thread2.