Back to Browse

To Check Weather Two Strings Are Anagram Or Not Using Java And Java 8 Stream API Day-9

92 views
Aug 10, 2024
14:40

In This Video I Covered Very Famous Interview Coding Questions .Write A Java Program To Check Weather Two String Are Anagram Or Not. I Tried To Solve Using First Core Java Then After I Solved By Using Java 8 Stream APIS With Help Of Grouping By and Equals Method .So Must watch and Learn New Concept. --------------------------------------------------------------------------------------------------------------------------- What is an Anagram? Write a java program to check weather two strings are Anagram or not. Anagrams are words or phrases you spell by rearranging the letters of another word or phrase.  Listen --------------------- Silent ------------- OUTPUT: -------------TRUE  Keep ----------------- Peek -------------- OUTPUT: ----- TRUE  Heart -------------- Earth ------------------ OUTPUT ---------------- TRUE  Elbow ---------------- Below ------------------- OUTPUT ----------------- TRUE NOTE: - The length of both string must be equals. Approach (i) Core Java (ii) Java 8 Stream APIS Social Media Link Please Connect With Me And Follow My Page 1. Java Developer Linkedin Page https://www.linkedin.com/company/104581726/admin/dashboard/ 2. Linkedin My Job Profile https://www.linkedin.com/feed/ 3.Facebook page https://www.facebook.com/profile.php?id=61563942425038

Download

0 formats

No download links available.

To Check Weather Two Strings Are Anagram Or Not Using Java And Java 8 Stream API Day-9 | NatokHD