Problem : Static initialization blocks are executed when the class is loaded, and you can initialize static variables in those blocks. It’...
Read More
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Java Loops II – Hacker Rank Solution Java
Problem : Sample Input : 2 0 2 10 5 3 5 Sample Output : 2 6 14 30 62 126 254 510 1022 2046 8 14 26 50 98 Java Loops II...
Read More
Java Loops I – Hacker Rank Solution
Objective In this challenge, we’re going to use loops to help us do some simple math. Task Given an integer, N , print its first 10 mul...
Read More
Java Output Formatting – Hacker Rank Solution
Problem Java’s System.out.printf function can be used to print formatted output. The purpose of this exercise is to test your understandin...
Read More
Java Stdin and Stdout II in Java – Hacker Rank Solution
Problem : In this challenge, you must read an integer , a double , and a String from stdin, then print the values according to the ins...
Read More
Java If-Else – Hacker Rank Solution
Problem In this challenge, we test your knowledge of using if-else conditional statements to automate decision-making processes. An if-e...
Read More
Java Stdin and Stdout I – Hacker Rank Solution
Problem Most HackerRank challenges require you to read input from stdin (standard input) and write output to stdout (standard output).One ...
Read More
Subscribe to:
Posts (Atom)