Skip to content
sneppets

sneppets

  • Privacy

Write a Java Program to print multiplication table for any number

December 15, 2023August 6, 2024 Editorial StaffLeave a Comment on Write a Java Program to print multiplication table for any number

Objective Write a Java program to print multiplication table for any given number “N”. Given an integer “N” generate its multiples. Each multiple must be printed on a new line in the form: N x i = result. Constraints 2… Read More!

Interview, Java interview, java

Find all possible combinations of numbers to print given sum

April 2, 2018December 8, 2018 Editorial Staff1 Comment on Find all possible combinations of numbers to print given sum

The following program will print all possible combinations of additions from a given set of numbers so that they sum  up to a given target number Sum Problem: Input: X={n1,n2,n3,..n(s)}, G Output= various combinations of X(n1..n(s)), where sum of X(n)… Read More!

Java core java, interview

Folder Health Monitor Java Program

March 29, 2018December 8, 2018 Editorial Staff2 Comments on Folder Health Monitor Java Program

Write a Java program to monitor the health of folder called ‘secured’. Monitoring includes folder size should not exceed 100 MB, archive older files to another folder called ‘archive’ if entire file size exceeds 100 MB but it should retain… Read More!

Java core java, interview, java sneppets
Copyright © 2018 Sneppets. All Rights Reserved