• About Us
  • Contact Us

Java-fries

Menu
  • Data structures
    • Stack
  • Java
    • collections
    • Inheritance
    • Interface
    • String
    • Threads
  • programming
    • Array
      • Matrix
    • Number
    • Stack
    • String

Maximum repeating element in an array in Java

vishal naik March 15, 2015 Array, programming No Comments
Problem: Write a Java program to find maximum repeating element in an array of integers in Java. Or write a program to find most popular element in an array. …
[Continue Reading...]

Sort elements by frequency

vishal naik February 28, 2015 Array, programming No Comments
Problem: Sort elements by frequency. Sort elements of an array by frequency of the elements of the array. Sort the elements by decreasing order of their frequency. If two …
[Continue Reading...]

Stack implementation using array in Java

vishal naik February 22, 2015 Data structures, Stack 1 Comment
Objective: Stack implementation using array. To implement a stack which can be used with any data type. In this article we will see how to implement a stack using …
[Continue Reading...]

Find first duplicate character in a string in Java

vishal naik January 4, 2015 programming, String No Comments
Problem:  Write a Java program to find first duplicate character in a string. For example: If given string is color, then the first duplicate character in the string is …
[Continue Reading...]

Reverse words in a string in Java

vishal naik January 3, 2015 programming, String No Comments
Problem: Write a Java program to reverse words in a string. For example: Input sentence :  Java fries is an awesome site for programming questions Output: questions programming for site …
[Continue Reading...]

First non repeating character in a string in Java

vishal naik January 3, 2015 programming, String No Comments
Problem: Write a Java program to find first non repeating character in a string or first unique character in a string. For example. 1. In string “baby”, first non repeating …
[Continue Reading...]

Check if a given array contains duplicate elements within k distance from each other

vishal naik January 2, 2015 Array, programming 2 Comments
Problem: Write a Java program to check if a given unsorted array contains duplicate elements within k distance from each other. For example: If k = 3 and array is …
[Continue Reading...]

Java program for Fibonacci series

vishal naik January 2, 2015 Number, programming No Comments
Problem: Write a Java program to print Fibonacci series. Here we have to print first ‘n’ numbers of Fibonacci series. This is a college level program and could be asked …
[Continue Reading...]

Difference between abstract class and interface in Java

vishal naik December 13, 2014 Interface, Java No Comments
In this article we will see the difference between abstract class and interface. This is famous interview question. You might have come across this question when you gave your …
[Continue Reading...]

Duplicate elements in array in Java

vishal naik December 7, 2014 Array, programming No Comments
Problem: Write a Java program to find duplicate elements in array. This is entry-level interview question and interviewers are interested to see if you can solve the problem with …
[Continue Reading...]

Posts navigation

Previous 1 2 3 4 5 6 7 Next
  • Popular
  • Recent
  • Comments
  • Tags
Powered by WP Tab Widget

Archieves

  • June 2018
  • July 2016
  • June 2016
  • March 2016
  • February 2016
  • January 2016
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • June 2014
  • May 2014

Newsletter

Java-fries Copyright © 2019.