Find Jobs
Hire Freelancers

Java help matching multiple words

$30-250 USD

Closed
Posted over 7 years ago

$30-250 USD

Paid on delivery
Need some help with Java. I'm trying to match multiple words in a string and can't figure out how to use more than word at a time instead of checking 1 word at a time. I would like the condition to only be true if all keywords are found in the sentence. Example: Search sentence for both "Astronaut" and "Moon" and return true only if both are found in sentence. The code is incomplete. But strings with a + character need to be considered as 2 keywords to search for before moving on to the next in the array if no match found. Here's a bit of my code: String sentence = "The Astronaut landed on the moon using the Apollo 13 space shuttle."; String[] keywords = {"Astronaut+Moon", "Moon+Apollo", "Apollo+shuttle"}; int size = [login to view URL]; for (int i=0; i<size; i++) { Pattern p = [login to view URL](keywords[i] + ".*"); Matcher m = [login to view URL](sentence); if ([login to view URL]()){[login to view URL]("Match Found");} }
Project ID: 11929099

About the project

38 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
38 freelancers are bidding on average $62 USD for this job
User Avatar
Hello. Can you send your code? Thanks.
$51 USD in 2 days
4.9 (1659 reviews)
8.0
8.0
User Avatar
Hello Sir, I have 6 years of experience in J2EE,c#,C, php, python based technologies. Regarding front end technologies, I am proficient in html, java script, jquery. My recent java works are as follows - I'm proficient with MySQL,PostgreSQL, SQLServer, AmazonRDS, MongoDB, Redis as databases, and can use most suitable one for your project. I can be your devops for tasks of deploying nodejs applications on Centos 7 VPS/VDS servers, Amazon EC2 or Heroku Cloud Application Platform. 1. Property extractor and search system - This project is developed in J2ee in which we need to extract properties from various property portals in India. The scraper work is done in Python. J2EE is used to provide back end system for searching [Lucene] and various database level operations. 2. Disease Gene Search Solution - This application is also built on J2ee which uses search capability of lucene to index more that 10 GB of data and provide efficient search system to users. Thanks & Regards Rajdeep Agrawal
$50 USD in 1 day
5.0 (43 reviews)
6.9
6.9
User Avatar
Hello I am Java expert and interested in this project. I have reviewed the details and confident to handle it perfectly. I have a lot of experience in helping in students with assignments, so I will keep codes well documented and simple. Please communicate to discuss further. Regards Anshu
$50 USD in 1 day
4.7 (458 reviews)
7.5
7.5
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing java projects. plus i passed freelancer java exam with top 15% plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him for anyone looking for an excellent java developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$30 USD in 1 day
4.9 (441 reviews)
6.7
6.7
User Avatar
Hello Sir, I have already done it and completed it. I am a computer science tutor, I teach (among others) Automata, Regex and Algorithms. I have done many projects like this, and I'm one of the top Algorithms developers, and you can check by clicking on my profile picture. Please contact me for more details when possible. I look forward to work for you Sir. Best Regards.
$40 USD in 3 days
4.9 (87 reviews)
6.1
6.1
User Avatar
hello, good day, i can help you with this project, as you would like to be done, details over PM. have a nice day.
$55 USD in 0 day
5.0 (2 reviews)
6.2
6.2
User Avatar
Hi, I have strong background in JAVA and experience in Algorithms. Let me help you. I am ready to start.
$70 USD in 3 days
4.8 (96 reviews)
6.1
6.1
User Avatar
Hi i'm software engineer and expert java developer with experience in many technologies regarding java. I have red your description i can help you with this kind of stuff. Please contact me and discus details Regards Usman Shery
$50 USD in 1 day
4.9 (111 reviews)
5.9
5.9
User Avatar
Hi, I hope you will be doing well. I believe on perfect work with 100% satisfaction of my client then payment. I deliver only exceptionally robust and well-designed work as a rule to my client. I understand your project and I am confident that I can do your project with great accuracy and 100% efficiency. I have seven years programming/teaching experience in Java/ C++/ C/Matlab/Software Architecture/ C#/Algorithm Design and Analysis. I am software developer and providing software solutions to my client from last seven years. I will provide you quality work with 100% accuracy. I want to do best to best work for my client, gain 100% satisfaction and quality work. You can trust me and consider me for your project. I am also faculty member (Instructor) at Computer Science and Engineering Department in FAST-NUCES National University Pakistan since February 2013. Thanks! Best Regards, Engr. Shahi
$100 USD in 2 days
4.8 (34 reviews)
4.8
4.8
User Avatar
Hello, My name is Achouri Issam. I have over two years experience in Software Engineering and i have a good Knowledge with Java, JavaEE,Android,IOS, Spring, Spring MVC, EJB,Struts2, Hibernate, JSP, Servlet , JPA, JSF, Primefaces, Webservices. I have a Big Knowledge,an excellent experience in reporting business intelligence (JaspeReport, Birt), and with a database design and managment. Also i work perfectly with Google maps API and social networks APIs(facebook, twetter, instagram). It is with pleasure that I make myself available to work with you. Looking forward to hearing from you.
$60 USD in 2 days
5.0 (20 reviews)
4.8
4.8
User Avatar
WISHING YOU PEACE IN YOUR LIFE. Can be done without for loop search !!!!. I have more than 8 years of experience in JAVA. The breakup of experience as per best of my knowledge: Hibernate 3.x - 4.x : 2 years 4 months Web Scraping: 2 year 2 months. Spring2.x - 3.x : 2year 1 months Struts 1.x - 2.x : 14 months HtmlUnit : 4 months XSLT/XML/DOM/JAXB : 7 months Jquery : 9 months javaScript/OOP JavaScript : 6 months Design Patterns : 1 year 8 month Database design(Oracle/MySQL) : 33 months. DATA Extraction experience from web-sites to name a FEW sites like facebook, stumbleupon, youtube, amazon, linkedIn, twitter, eBay and yelp and many more. I had experience in web-scrapping software development tool also. Working in a reputed company,Cognizant ,India ,Pune. Believe to be problem solver . "Honesty is the best policy" i really mean it. Worked on Oracle /MYSQL Database & Java Related frameworks most of the time . Basically i am an web/Desktop developer. Thanks & Regards
$125 USD in 1 day
4.7 (19 reviews)
5.1
5.1
User Avatar
hi, am here to help you dear ..............................................................................
$35 USD in 1 day
4.5 (20 reviews)
4.8
4.8
User Avatar
Hello, I will send the solution after you award me the project. Before I get paid I will provide a proof to guarantee that it works correctly. Thanks.
$30 USD in 1 day
5.0 (21 reviews)
4.4
4.4
User Avatar
hello sir, I am expert in java and I have done similar task in past. Let's discuss in detail about your project.
$120 USD in 0 day
4.9 (25 reviews)
4.2
4.2
User Avatar
A proposal has not yet been provided
$50 USD in 1 day
4.8 (17 reviews)
4.2
4.2
User Avatar
Hi... i read the descriptions and understand i will provide quality work according to your requirement in given time period i will work on our project until you satisfy i am professionally software engineer(Present) having 2 year experience in this field you can check my portfolio. i will feel confidence to work with you....! Thanks
$60 USD in 1 day
4.1 (21 reviews)
4.2
4.2
User Avatar
Hi, I have very excellent knowledge in Java and I have done many projects. I use regex daily :) as I work in Java I can do the code and explain it to you, we can discuss more about the problem and I will ensure you will be very happy with my work, hope we can work together.
$30 USD in 3 days
5.0 (12 reviews)
3.7
3.7
User Avatar
A proposal has not yet been provided
$83 USD in 2 days
5.0 (5 reviews)
3.1
3.1
User Avatar
Hi, I am available for new work, I can help you to develop the code in java, please come on chat for more informations I can do the perfect work thank you so much
$88 USD in 3 days
5.0 (10 reviews)
3.3
3.3
User Avatar
I will suggest you to di it yourself. It will be a fun :) Instead of String[] keywords = {"Astronaut+Moon", "Moon+Apollo", "Apollo+shuttle"}; use vector< vector<String>> So that inner vector will store the keywords in parsed manner. Modify you for loop to read each entry of outer vector Now inside your for loop create another loop which read each entry of inner vector and pass it to Pattern and matcher. In this way you can match multiple entries.
$30 USD in 3 days
5.0 (1 review)
2.1
2.1

About the client

Flag of UNITED STATES
Memphis, United States
5.0
2
Member since Jan 2, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.