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

 

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

Given two Strings a and b simply return a followed by b unless they are the same in which case just return one of them.


ifNotEqualCon("Hello", "World") → "HelloWorld"
ifNotEqualCon("Hello", "Hello") → "Hello"
ifNotEqualCon("Abbra", "Cadabbra") → "AbbraCadabbra"

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

public String ifNotEqualCon(String a, String b) { }

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