Question: does anyone have experience with the coursera Java custom string assessment? I got the first part but this part errors. this is the second part

does anyone have experience with the coursera Java custom string assessment? I got the first part but this part errors.

 does anyone have experience with the coursera Java custom string assessment?

I got the first part but this part errors. this is the

second part of the custom string assessment //string should be null to

start, before setting it assertNull (this.myCustomstring.getstring()) ; this.myCustomstring.setString("Good-bye!"); assertEquals("Good-bye!", this.myCustomstring.getString()); // TODO

write at least 3 additional test cases this.myCustomstring.setstring ("saxophone") ; assertEquals("saxophone", mycustomstring.getstring());

this.myCustomstring. setstring ("Avaatar") ; assertNotEquals ("avaatar", "lyCustomstring.getString()); this.myCustomString. setstring("12345"); assertEquals("12345", this.myCustomstring.getstring().trim()); \}

aTest void testRemove() \{ assertEquals ("'", this.mycustomstring. remove("')); this.myCustomstring. setstring (null); assertEquals("my

this is the second part of the custom string assessment

//string should be null to start, before setting it assertNull (this.myCustomstring.getstring()) ; this.myCustomstring.setString("Good-bye!"); assertEquals("Good-bye!", this.myCustomstring.getString()); // TODO write at least 3 additional test cases this.myCustomstring.setstring ("saxophone") ; assertEquals("saxophone", mycustomstring.getstring()); this.myCustomstring. setstring ("Avaatar") ; assertNotEquals ("avaatar", "lyCustomstring.getString()); this.myCustomString. setstring("12345"); assertEquals("12345", this.myCustomstring.getstring().trim()); \} aTest void testRemove() \{ assertEquals ("'", this.mycustomstring. remove("')); this.myCustomstring. setstring (null); assertEquals("my lucky numbes e 6, 8, nd 19.", this.mycustomstring.remove("ra // TODO write at least 3 additional test cases myCustomstring.setString(I); aam your; assertEquals ( Im) ; this.myCustomstring. remove ("au") this.myCustomstring.setstring (The); London bridge;is falling; my fair; assertEquals(Th); Ld brdg; s fag; my fair; this.myCustomstring. remove ("eoni145"); this.myCustomstring. setstring (Lady); Ada Lovelace; assertEquals (Ldy) this.myCustomstring. remove (123456) ; testReverse() \{ assertEquals("', this.myCustomstring.reverse("'))); this.myCustomstring. setstring (null); assertEquals("', this.mycustomstring.reverse("I")) ; // TODO write at least 3 additional test cases this.myCustomstring. setstring(in long; lost woods; go ahead; march forward); assertEquals("In LonG Lost Woods : Go AheAd : MArch ForWArd", this.myCustomString.reverse(" this.mycustomstring.setstring("have a cup of 99 tea totals"); assertEquals("have a cup of 99 TEa ToTals", this. mycustomstring. reverse(" 8t - e)); this.mycustomstring. setstring (World Wide Web); assertEquals (worLd widE wEb, this. mycustomstring. reverse (" 8w el")); \} etest assertEquals("" , this.myCustomString.filterLetters('E', false)); void testFilterLetters( ){ this.mycustomstring. setstring(null); assertEquals("", this.myCustomString.filterLetters('E', false)); // TODO write at least 3 additional test cases of same feather flock together : "990"); assertEquals ("bd ae eae c ee : 990", this.myCustomstring.filterletters('f', true)); this.myCustomstring.setstring (birds of same feather flock together : "990"); assertEquals(irs o sm thr lok togthr : "990"; this.myCustomstring. filterLetters(' f, false)) \} CustomStringTest.java:110: error: ';' expected Wide Web); CustomStringTest.java:111: error: ')' expected assertEquals (world widE CustomStringTest.javas112: error: as of release 8 , 'this' is allowed as the parameter wEb, this.myCustomstring, reverse("8w- which has to be the first parameter, and cannot be a lambda parameter I CustomStringTest.java:112: error: ';' expected wEb, this.myCustomString. reverse("8w- CustomStringTest.java:112: error: unclosed string literal wEb, this. myCustomString. reverse("8w- CustomStrngTest.java:113: error: unclosed string literal elni)) CustomStringTest.java:113: error: not a statement elin)); CustomStringTest.java:125: error: unclosed string literal assertEquals("d- CustomStringTest.java:126: error: not a statement be!", this.myCustomString.filterLetters ( 'g', true)); CustomStringTest.java:126: error: ';' expected be!", this.myCustomString.filterLetters('g', true)); CustomStringTest.java:126: error: unclosed string literal be!", this.myCustomString.filterLetters('g', true))

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!