Armstrong number Example in Java How to check if a number is an Armstrong number or not? or write a Java program to find Armstrong's number? This is a common Java interview question asked on-campus interviews and fresher-le…
Read more
Hello guys, one of the common coding questions from Java interviews is how to test if an Array contains a certain value or not? This is a simple question, but sometimes interview pressure makes candidates nervous. In this artic…
Read more
Hello guys, if you are preparing for coding interviews and wondering whether joining AlgoMonster is right decision or not then you have come to the right place. Earlier I have shared best website for coding interview preparation…
Read more
Hello guys, if you are learning Java and looking for basic programming exercise to build your concepts then you have come to the right place. Earlier, I have shared 15 common Java programming exercises and today, you will learn …
Read more
Pattern based exercises are a good way to learn nested loops in Java. There are many pattern based exercises and one of them is printing Pyramid structure as shown below: * * * * * * * * * * * * * * * You need to wr…
Read more
Hello guys, today, I'll share with you a simple problem of writing a Java program to print prime numbers up to a given number like saying prime numbers from 1 to 100. It's one of the most common coding exercises for prog…
Read more
From the last couple of articles, I am writing about coding exercises for beginners e.g. yesterday you learned how to write a program from matrix multiplication in Java (see here ) and a couple of days back, you have learned th…
Read more
Hello guys, today's programming exercise is to write a program to find repeated characters in a String . For example, if given input to your program is "Java", it should print all duplicates characters, i.e. charac…
Read more
One of the common programming practice question thrown to beginners is to write a program to calculate the sum of digits in an integral number. For example, if the input is 123456 then output or sum of the digit is (1+2+3+4+5+…
Read more
If you are looking for a solution of problem how to calculate perimeter and area of a given Square in Java then you have come at the right place. In this article, I have given step by step solution of this common coding problem. …
Read more
Hello guys, if you are wondering how to calculate compound interest in Java or looking for Java program to calculate compound interest then you have come at the right place. Earlier I have shared how to calculate simple interest …
Read more