Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8247431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:50:48+00:00 2026-06-07T22:50:48+00:00

I have two strings containing letters and numbers separated by spaces. ex String1elza7ma wa2fa

  • 0

I have two strings containing letters and numbers separated by spaces. ex String1″elza7ma wa2fa fel matab” and String2″2ana ba7eb el za7ma 2awy 2awy”.

I want to get each word of String1 is compare to all words of String2 and also generate percentage of compare words. If Percentage of compare words is greater then 80% return that words for further use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:50:50+00:00Added an answer on June 7, 2026 at 10:50 pm

    you can use the split() method of the String class to get each seperate word of the two strings returned to you in an array then you can loop through the arrays to find the matching words.
    That’s a pretty simple example and should get you started in the right direction. You will get better help if you try writing the code yourself first and then ask questions if something is not working correctly and provide some code for review.

    String[] s1 = String1.split(" ");
    String[] s2 = String2.split(" ");
    
    for(String s : s1){
        for(String ss : s2){
            if(ss.equals(s)){
                //do something
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okey, I have two strings containing numbers like shown here using debugger: String 1
I have two arrays containing different keys and values. However, some keys store strings
I have two arrays, each containing strings. The first array is a list of
I have two strings containing folder paths. Is there a way to determine if
Suppose I have the following two strings containing regular expressions. How do I coalesce
I have two equal length strings containing 1's and 0's. Each string is 128-bits
I have two lists containing unicode strings. I'm trying to remove every element from
I have a List<> of objects containing two strings and a DateTime. I want
I have two Perl string variables containing date values. I want to check whether
I have two strings str1 and str2 . Check both of them and see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.