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

 

simona1@sfusd.edu two_d_arrays > element11
prev  |  next  |  chance

Write a method named element11 that uses toArray() to covert the String parameter s to a two-dimensional array of int. Then return the element at row 1 and column 1. You must cut and paste method toArray() from the Hint. This problem is practice for using toArray(), since most of the following problems use it.


element11("{{1,3},{5,7}}") → 7
element11("{{2,5},{1,4}}") → 4
element11("{{1,2,3},{2,1,4},{3,4,1}}") → 1

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

public int element11(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: 300 Post-solution available

Copyright Nick Parlante 2017 - privacy