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

 

zbaharav@kehillah.org > sum2Ints
prev  |  next  |  chance

Write a program that takes two integer inputs, and a string, and returns the sum of the two integers.


sum2Ints(1, 2, "Hello") → 3
sum2Ints(3, 4, "") → 7
sum2Ints(5, -1, "AA") → 4

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

public int sum2Ints(int a, int b, String s) { }

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