Question: //JAVA// i need help with the getLength method bc i need it to return an integer array that i can implement in other methods in

//JAVA// i need help with the getLength method bc i need it to return an integer array that i can implement in other methods in order to make it easier for me to count the minimum and the maximum length of each word, just getting started with learning java so im trying to learn how to manipulate these methods
//JAVA// i need help with the getLength method bc i need it

getlength(list); getMinLength(list); 3 public static int [] getLength(String[] list) \{ for (String word: list) \{ if (!word. isempty()) \{ System. out. println(word+ " length is "+word. length()); return null; //return list; \} public static void getMinLength(String [] list) \{ int [] lengths = new int [2ist. . length ]; int mincount=lengths [0] ; for (int x=0;x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!