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

 

makeInitialization


Make a program that writes a line of Java code. Given the name of the variable and its value, write an initialization of an int with that name and value. e.g. given the name "x" and the value "5", write "int x = 5;"


makeInitialization("x", 5) → "int x = 5;"
makeInitialization("y", 10) → "int y = 10;"
makeInitialization("z", 13) → "int z = 13;"

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

String makeInitialization(String name, int value) { }

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: 115 Post-solution available

Copyright Nick Parlante 2017 - privacy