Part 1: Skating Medals count
Write a program to insert the following data into a 2D double array and perform addition operation on each row.

Gold, Silver, Bronze
Canada 0 3 0
Germany 0 2 1
Japan 1 0 1
Russia 3 1 1
South Korea 0 1 0
United States 1 4 1

Declare a 2D int array and populate the array with the data from the above table.
Iterate over the array and print the sum of medals that each country has won.

Example output:
Canada --> 3
Germany --> 3
Japan --> 2
Russia --> 5
South Korea --> 1
United States --> 6

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

import java.util.ArrayList;
import java.util.Scanner;

public class SkatingMedals {

public static boolean isNumeric(String str) {

if (str == null || str.length() == 0)
return false;

char[] ch = str.toCharArray();

for (int i = 0; i < ch.length; i++) {
            if (!Character.isDigit(ch[i]))
                return false;

       return true;

public static void main(String[] args) {

Scanner sc = new Scanner(;

ArrayList<String> inputs = new ArrayList<String>();...

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats