Blog Archives

Beginner array coding problems in Java

More Data Structure and Algorithms Coding Questions and answers in Java.

Q1. Write a program that allows you to create an integer array of 5 elements with the following values: int numbers[ ]={5,2,4,3,1}. The program computes the sum of first 5 elements and stores them at element 6,

Read more ›



Find pair of numbers with a given sum in Java

Q. Write a method which takes the parameters (int[ ] inputNumbers, int sum) and checks input to find the pair of integer values which totals to the sum. If found returns true, else returns false? Considerations: Should it work for negative integers? … Read more ›...

Members Only Content
Log In Register Free Q&As


Java FAQs to Fast-track & Go places

Big Data Engineer FAQs

Java Interview Q&As

Note that some posts belong to multiple categories.
Top