subject

Write a static method, getbigwords, that gets a single string parameter and returns an array whose elements are the words in the parameter that contain more than 5 letters. (a word is defined as a contiguous sequence of letters.)example: so, if the string argument passed to the method was "there are 87,000,000 people in canada", getbigwords would return an array of two elements, "people" and "canada".another example: if the string argument passed to the method was "send the request to support@turingscraft. com", getbigwords would return an array of three elements, "request", "support" and "turingscraft".i have tried this question numerous times and have tried to apply solutions recomended on chegg, all of which are giving errors. i'm currently using this code; public static string[] getbigwords(string userstring){ string allwords[] = userstring. split("[@,\\s\\.\\? \\! ]"); string strings[] = new string[allwords. length]; int count = 0; for(int i = 0; i < allwords. length; i++){ if(allwords[i].length() > 5){ if(allwords[i].matches("a-za-z]+")) { strings[count] = allwords[i]; count++; } } } string result[] = new string[count]; for(int i = 0; i < count; i++) result[i] = strings[i]; return result; }when i submit the code into my programming lab, i get the following errors; more hints: β‡’ we think you might want to consider using: +=problems detected: β‡’ word 'extremely' not returned in result β‡’ word 'location' not returned in result β‡’ word 'powerful' not returned in result β‡’ word 'charge' not returned in result β‡’ word 'devoted' not returned in result β‡’ word 'elephants' not returned in result β‡’ word 'extremely' not returned in result β‡’ word 'location' not returned in result β‡’ word 'magnitude' not returned in result β‡’ word 'numeric' not returned in result β‡’ word 'personality' not returned in result β‡’ result array length (0) is wrongi've been trying to find a solution to this problem for hours and i'm completely stuck. what am i doing wrong?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
You know the right answer?
Write a static method, getbigwords, that gets a single string parameter and returns an array whose e...
Questions
question
Mathematics, 04.09.2020 09:01
question
Geography, 04.09.2020 09:01
question
Social Studies, 04.09.2020 09:01
question
Physics, 04.09.2020 09:01
Questions on the website: 13722360