Below is a two dimensional array ineteger variable.

int[ ][ ] value={{1, 2, 3, 4 }, {5, 6,7}, {8, 9}, {10}}

please write a java code that can print the values and sum the column values as shown below:

        1    2   3   4  
        5    6   7
        8    9
        10  

Sum =   24   17  10  4

Regards.

jwenting commented: hopeless homework kiddo -3

Recommended Answers

All 2 Replies

No.
We don't do your homework!
Read the DaniWeb Rules, and start again.

3 years reading this site and you
a) still don't know how to do something that basic
and
b) still don't know we're not your homework service?

sheesh

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.