Question: Please complete following problems in java , see below for required java file code . Thank you. Natali is a dance choreographer and is designing
Please complete following problems in java, see below for required java file code. Thank you.
Natali is a dance choreographer and is designing a dabkeh dance for n girls. The girls started by holding each others' hands in a line. But Natali decided to divide the girls into two lines according to their heights. The girls don't want to let go of each other's hands, but will do only if one of them is taller than 150cm. Natali goes through the girls and removes the girls taller than 150cm and lines them up into a new line. Input The first line contains a single integer t(1t100) - the number of testcases. The first line of each testcase contains a single integer n(1n50) - the number of girls in the dance. The second line contains n integers a1,a2,an(100ai200) representing the height of each girl. Output For each testcase, print the line of short girls, followed by the line of taller girls. Separate testcases by a new line. Sample input 2 10 153138149197167135124147158116 15 133161115155148128186197132174132184134158174 Sample output 153197167158 138149135124147116 161155186197174184158174 133115.148128132.132134
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
