Blog: Java concept of the day (Pramod Bablad) 
204 blogs
updated: 39 min. ago


How To Check Harshad Number (Niven Number) In Java?
Problem : Write a java program or function to check Harshad number (or Niven number). Your program should take one positive integer from the...


How To Find Saddle Point Of A Matrix In Java?
Problem : Write a java program or function to find saddle point of a matrix. Your program should take input matrix from the user, display th...


What Are Initial Capacity And Load Factor Of HashMap In Java?
HashMap is one of the high performing data structure in java collection framework. Whatever may be the size of the data, HashMap almost give...


How To Find Union And Intersection Of Multiple Arrays In Java?
Problem : Write a java program or function to find union and intersection of multiple arrays. For example, Input Arrays : {2, 3, 4, 7, 1} {4...


How To Read And Write Images In Java? – ImageIO Example
Problem : Write a java program to read and write images. Your program should read an image file either from local disk or from any URL and w...


How To Compare Two Text Files In Java?
Problem : Write a java program to compare two text files line by line. Your program should take two text files as input and compare their co...


Difference Between Two Dates In Java – Years, Days, Hours, Minutes, Seconds
Problem : Write a java program to find the difference between two dates in years, days, hours, minutes and seconds. Your program should take...


How To Find Frequency Of All Digits In Number In Java?
Problem : Write a java program or function to find the frequency of all digits in a given number. For example, if 21757132 is input number t...


Symmetric Matrix Program In Java
What Is Symmetric Matrix? Symmetric matrix is a square matrix which is equal to its transpose. In the other words, if A[][] is a square matr...


How To Set File Permissions In Java With Examples?
java.io.File class has six important methods which are used to set file permissions in java. All these methods are introduced in JDK 1.6. Le...

