Posts

Showing posts from September 13, 2025

Lets Check- 31-35 Java Questions

Image
 

Lets Check- 26-30 Java Questions

Image
 

Lets Check- 21-25 Java Questions

Image
 

Lets Check- 16-20 Java Questions

Image
 

Lets Check- 11-15 Java Questions

Image
 

Intermediate-level projects using Java

Image
 

Java Projects for Beginners

Image
 

Pair the array BigSmall:

Image
    Looking for a best optimal solution. Two different style is possible  1.Sort the array and  use Two pointer 2. Sort in different index.(Best)                    import java.util.*; class PairBigSmall{     public static void main(String[] args)      {                  int[]arr={8,9,1,2,7,3,4};         System.out.println(Arrays.toString(arr));                  for (int i = 0; i < arr.length; i++)         {             if (i % 2 == 0)             {                 for (int j = i; j < arr.length; j++)                 {                     if (arr[i] < arr[j])   ...