# java 2d arrays

Create a program that will: a) Create the array and populate it with the given values.

``` 9, 8
2, 17
49, 4
13, 119
2, 19
11, 47
3, 73
```

b) Multiply, for each row, the value of the first column by the value of the second column, and create a grand sum of these products. c) Print out the grand sum obtained in c)

so far this is my code and it is giving me 216. and if i do it manualy it is wrong.

public class Arrays { public static void main(String[] args) { int array_x[][]={ {9,8}, {2,17},

```            {49,4},
{13,119},
{2,19},
{11,47},
{3,73}};
```

{ int sum=0; int multiply=0;

for (int x=0; x<=6; x++){ multiply = arrayx[x]*arrayx[x]; //} sum = sum+multiply; } System.out.println(multiply); }

} }

java 2d arrays
java 2d arrays  Create a program that will: a) Create the array and populate it with the given values. 9, 8 2, 17 49, 4 13, 119 2, 19 11, 47.... and if i do it manualy it is wrong. public class Arrays { public static void main
2d arrays
2d arrays  what is the code for multiplying the values in a 2d array and printing out their sum
Concatenate 2D arrays
Concatenate 2D arrays  JFileChooser jf = new JFileChooser(); jf.setMultiSelectionEnabled(true); int returnVal = jf.showOpenDialog(frame); File...://www.roseindia.net/tutorial/java/poi/readExcelFile.html
Java 2D
Java 2D  Hi, What is Java 2D? Thanks   Hi, Please see it at Java 2D API. Thanks
Arrays in java
Arrays in java  what is param array in java
java arrays
java arrays  can i know how can we intilize the three dimentional arrays in java? and how can we assign thae values to that array
java arrays
java arrays  i need a java program to store student details like id,name,addr,marks,average,total..using arrays..input data using scanner class and by using class, object and constructor
Java with Arrays
Java with Arrays  I was given the assignment to create two parallel arrays; both of size 50 (declares 50 as a constant) One is an array of strings... and store it in the arrays. The input for the problem should be provided in a text
Java Arrays
Java Arrays  import java.util.ArrayList; public class try3{ public static void reduce(int[]arr, int len){ for (int i= 0; i<len;i++) { arr[i]--; } len--; } public static void main (String[]args){ int
java arrays
java arrays  Suppose that you are required to store information about students for the module Data structures and Algorithms. The information for each student consists of the studentâ�?��?�s ID number, surname, other names
Java 2D API
Java 2D API       Programming has become more interactive with Java 2D API. You can add images... since Swing is built on 2D package. Pluggable Look and Feel  The Java Swing
Arrays in java 7
This tutorial describes the concept of Arrays in java 7
How to concatenate two arrays in Java?
How to concatenate two arrays in Java?  How to concatenate two arrays in Java
intersection of two java arrays
intersection of two java arrays  I am trying to figure out how to compare two arrays and get the intersection and put this into a third array of the correct size. I know how to copy the two arrays into the third array but am
Introduction to java arrays
Introduction to java arrays   ... of Arrays in Java Programming language. You will learn how the Array class... arrays. To meet this feature java has provided an Array class which abstracts
arrays
arrays  using arrays in methods   Java use arrays in methods import java.util.*; class ArrayExample{ public static int getMaxValue(int[] arr){ int maxValue = arr; for(int i=1;i < arr.length;i
Arrays
Arrays   Hi I need help with the following exercises. Exercise 1: Write a Java application in which the user is prompted for the total number... of all the values as well. Exercise 2: Write a Java application in which you
Arrays - Java Interview Questions
a program that take arrays A & B as input and find missing element in B array
Arrays
Arrays  I'm new to java and I need help completing the question below... called Rebel.java; 2.Create two arrays. One of them must store integer numbers... the numbers in the second array by 3; 7.Print out the contents of both arrays. 8.Swap
arrays
Store a table with students and information (name, ID, password, crypted password, etc) in a multi-dimensional array "stud"  Arrays and Strings: Store a table with students and information (name, ID, password, crypted password
Java Method with arrays
Java Method with arrays  My assignment is to write a java method, smallestIndex, that takes as its parameters an int array and its size, and returns the index of the (first occurrence of the) smallest element in the array. Also
how to compare 2 arrays using java?
how to compare 2 arrays using java?  hi can anyone give me the information regarding comparision of arrays.   Java Compare Arrays
Arrays
Implement Java code which takes 2 dimensional integer array as input and prints out heaviest island  Implement Java code which takes 2 dimensional integer array as input and prints out heaviest island
Arrays
Arrays  Write a program in java(BlueJ) to store the numbers in single dimensional array(S.D.A)into another S.D.A in reverse order of the location
arrays
arrays  public class Country{ string countryName; string location; int population; double area; } a.write a java statement to create an array of 10 country objects called mycountry using the Country class. b.Assuming
guys,, need help,, in java programing,, arrays
guys,, need help,, in java programing,, arrays  create a program where you will input 10 numbers and arrange it in ascending way using arrays
Introduction to Java Arrays
Introduction to Java Arrays     .... Structure of Arrays Now lets study the structure of Arrays in java. Array..., supports an array of arrays. In Java, a two-dimensional array ' x' is an array
Introduction to java arrays
Introduction to java arrays     .... Structure of Arrays Now lets study the structure of Arrays in java. Array..., supports an array of arrays. In Java, a two-dimensional array ' x' is an array
how to find inverse of n*n 2d array in java
how to find inverse of n*n 2d array in java  I reached upto code of printing the matrix as: Assume that matrix is square matrix where row=column code is: public class ReadContents{ public static void main(String args
Structure of Java Arrays
Structure of Java Arrays       Now lets study the structure of Arrays in java. Array is the most widely used data structure in java. It can contain multiple values of the same
using 2D Array
using 2D Array  Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student. Assume there are 5 questions in the test. Your program