In java without using scanner A string is an anagram of another if its letters can be rearranged to produce the other st

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In java without using scanner A string is an anagram of another if its letters can be rearranged to produce the other st

Post by answerhappygod »

In java without using scanner
A string is an anagram of another if its letters can berearranged to produce the other string. For example, "forty five"is an anagram of "over fifty". Write a program that checkswhether two strings given on the command line are anagrams. Youshould not use any sorting method. You can assume the strings willonly contain letters (a – z, A – Z) and spaces.
Examples
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply