id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

abraskin@mbusd.org > addBRTags
prev  |  next  |  chance

In HTML the
tag causes a line of text to 'break' to the next line just like the escape sequence "\n" in Java.


Given 3 String parameters return a single concatenated String with 
tags after each parameter.

addBRTags("Line1", "Line2", "Line3") → "Line1<br>Line2<br>Line3<br>"
addBRTags("Now is the time", "for all good people", "to stand up to the tyranny of MISINFORMATION") → "Now is the time<br>for all good people<br>to stand up to the tyranny of MISINFORMATION<br>"
addBRTags("A", "B", "C") → "A<br>B<br>C<br>"

...Save, Compile, Run (ctrl-enter)

public String addBRTags(String line1, String line2, String line3) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy