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

Java Coding Questions

Uploaded by

vamsi.d124
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Java Coding Questions

Uploaded by

vamsi.d124
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Prime Numbers
2. Sum of N numbers
3. Print list of ODD and EVEN in said N numbers
4. Reverse a number
5. Palindrome
6. number of occurrences of a character in a String
7. number of vowels and consonants in a String
8. Factorial of a Given Number
9. Armstrong Number
10. Fibonacci series using recursion
11. Fancy Number
12. Design Pyramid using Java pattern (Pascal Triangle with Number and asterisk (*)
13. Anagram (ANGEL –GLEAN)
14. Perfect No.
15. matching elements in an integer array
16. Second Largest No. In an array. { 1, 2, 3, 4, 5, 1, 2, 6, 7 };
17. Reverse an array elements
18. repeated elements in an integer array
19. find the missing number in a given integer array of 1 to 100
20. largest and the smallest element of an array which is not sorted.
21. remove all occurrences of a given character from the input string\\ "Australia"; // ustrli
22. Find Top 2 Numbers from an Integer array.
23. Swapping of numbers without using 3rd or Temp Variable.
24. perform swapping two strings by not using a third variable
25. Check whether the integer is power of 2
26. Count No of Words in string.
27. Check whether the number is stepping No.
28. Calculate the number of numerical digits in a string?
29. Fizz-Buzz
Note :: Fizzbuzz problem statement is very simple, you need to write a program that
returns "fizz" if the number is a multiplier of 3, return "buzz" if its multiplier of 5, and
return "fizzbuzz" if the number is divisible by both 3 and 5.If the number is not
divisible by either 3 or 5 then it should just return the number itself.

30. find all pairs of an integer array whose sum is equal to a given number?
[2, 4, 3, 5, 6, -2, 4, 7, 8, 9] Given
sum : 7
Integer numbers, whose sum is equal to value : 7 (2, 5) (4, 3) (3, 4) (-2, 9)

You might also like