Array contaning names
Create a function that takes an array contaning the names of people who likes the post of someone else blog. [] â nobody like this post ["Maria"] = Maria liked this post ["Maria, Sam, Troy"] = Maria, Sam Troy liked this post ["Maria, Sam, Troy, Josh Seb"] Maria, Sam and 3 others liked this post THE SAMPLE TEST CASE: import static org.junit.Assert.assertEquals; import org.junit.Test; public class LikedItSampleTest { @Test public void WorksForEmptyArray() { LikedIt likedIt = new LikedIt(); assertEquals(likedIt.likedIt(new String[0]), "Nobody likes this post"); } @Test public void WorksForArrayWithLengthThree() { LikedIt likedIt = new LikedIt(); assertEquals(likedIt.likedIt(new String[]{"Jerzeil Lira", "Danielle Kaye", "Marinel"}), "Jerzeil Lira, Danielle Kaye and Marinel like this post"); } @Test public void WorksForArrayWithLengthFour() { LikedIt likedIt = new LikedIt(); assertEquals(likedIt.likedIt(new String[]{"Mikko", "