Java 8 Stream API sorted() Example

Hey guys in this post let's discuss aboutsorted()introduced in Java 8 java.util.stream.Steam interface. On the streams() we can perform some aggregate operations such as filter(), sorted() and map(). In this…

2 Comments

Java 8 Stream API filter() example

Hey guys in this post let's discuss about filter() introduced in Java 8 java.util.stream.Steam interface. On the streams() we can perform some aggregate operations such as filter(), sorted() and map().…

0 Comments

Google style login page

Hello everyone, today in this post I will show you how to design google style login page with HTML and CSS so let's begin. index.html <!DOCTYPE html> <html lang="en"> <head>…

0 Comments

Test whether the number is divisible by 7 or not

Test cases: Test cases Expected Result isDivisibleBy7(17) false OK isDivisibleBy7(77) true OK isDivisibleBy7(12) false OK Java solution: public class Program3 { public static void main(String[] args) { Program3.isDivisibleBy7(17); Program3.isDivisibleBy7(77); Program3.isDivisibleBy7(12);…

0 Comments

Check the given number is odd or even

Test cases: Test cases Expected Result testOddEven(12) even OK testOddEven(3) odd OK testOddEven(-55) odd OK Java solution: package test; public class Program2 { public static void main(String[] args) { Program2.testOddEven(12);…

0 Comments