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

 

addInts


Given two integers, a and b, add them together and return the sum.


addInts(4, 3) → 7
addInts(2, 8) → 10
addInts(-2, -4) → -6

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

public int addInts(int a, int 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: 2

Copyright Nick Parlante 2017 - privacy