Computers and Technology

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?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, depression4eternity
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, taapeters
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
image
Computers and Technology, 24.06.2019 02:30, talia43
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
Do you know the correct answer?
Write a static method, getbigwords, that gets a single string parameter and returns an array whose e...

Questions in other subjects: