Description
1. Write a Java program to convert an octal number to a binary number.
2. Write a Java program to convert an octal number to a decimal number.
3. Write a Java program to compare two numbers.
4. Write a Java program to create and display unique three-digit number using 1, 2, 3, 4. Also count how many three-digit numbers are there.
5. Write a Java program to find the size of a specified file.
7. Write a Java program to calculate the sum of two integers and return true if the sum is equal to a third integer.
8. Write a Java program to calculate the sum of two integers and return true if the sum is equal to a third integer.
9. Write a Java program to extract the first half of a string of even length.
10. Write a Java program to create a new string taking first and last characters from two given strings. If the length of either string is 0 use “#” for missing character.
Test Data: str1 = “Python”
str2 = ” ”
Sample Output: P#




Reviews
There are no reviews yet.