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

 

andersoniii.edwin@cusd80.com > cardWar
prev  |  next  |  chance

Write a method to simulate one hand of "WAR" card game - The input will be two cards - the output will return the highest card (suit included) or the word "WAR" This message will be returned when the cards have the same card value - not regarding the suit.


cardWar("S2", "S3") → "S3"
cardWar("S8", "C2") → "S8"
cardWar("SQ", "DK") → "DK"

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

public String cardWar(String carda, String cardb) }

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