how to make a matrix like datagrid in ide in java pls help

Ads
 

how to make a matrix like datagrid in ide in java pls help

how to make a datagrid mainly matrix in ajava standalone app

View Answers

March 13, 2012 at 12:35 PM

import java.io.*;
import java.util.*;

public class matrix {
        public static void main(String[] args) throws IOException {
                int[][] dim = new int[2][2];
                BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
                System.out.println("Enter the rows of matrix : ");
                dim[0][0] = Integer.parseInt(stdin.readLine());
                System.out.println("Enter the columns of matrix : ");
                dim[0][1] = Integer.parseInt(stdin.readLine());

                int[][] A = new int[dim[0][0]][dim[0][1]];
                for (int i = 0; i < A.length; i++)
                for (int j = 0; j < A[i].length; j++) {
        System.out.println("Enter element ("+(i+1)+","+(j+ 1)1)+"): ");
                A[i][j] = Integer.parseInt(stdin.readLine());
                        }
                System.out.println("Matrix ");
                for (int i = 0; i < A.length; i++) {
                        System.out.println();
                        for (int j = 0; j < A[i].length; j++) {
                                System.out.print(A[i][j] + " ");
                        }
                }
        }
}

Ads









Related Tutorials/Questions & Answers:
how to make a matrix like datagrid in ide in java pls help
how to make a matrix like datagrid in ide in java pls help  how to make a datagrid mainly matrix in ajava standalone app
how to create unit matrix in java of arbritary dimensions
how to create unit matrix in java of arbritary dimensions  i want to create the unit matrix of arbritary dimensions say (n*m).i m a new beginner to java.someone having the program for that? help would be appreciable
Advertisements
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
how to find the eigenvalue and eigenvector of n*n matrix in java
how to find the eigenvalue and eigenvector of n*n matrix in java  I m the new beginner in java and want to find eigenvalue and eigenvector of n*n matrix.where n is vary from n=4,5,6...... pls help me that would be appreciable
Pls help me...........
Pls help me...........  how to use the text file as input to insert the values injdbc?   Please visit the following link: Insert text file data into database
How to add dynamically rows into database ?Need help pls
How to add dynamically rows into database ?Need help pls  Hi everyone, I really have a problem of insert multiple rows into the database.Now i can... into the database.I have been trying to solve in for ages.Can anyone pls help me.Thanks
i want make a simple tools like turnitin using java
i want make a simple tools like turnitin using java  it just simple tools can select the file like .doc,.pdf,.txt..the tools can read inside the file and make a searching at internet and give the source the source come from where
Pls help me with strings
Pls help me with strings  To reverse a every other word in a string. Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message
Pls help me with strings
Pls help me with strings  To reverse a every other word in a string. Example :- If the input is "This is a line of message" the output should be "sihT is a line fo message
How to make query and abstraction in Java
How to make query and abstraction in Java  Hi, I read the lessons... write. I am very beginner in Java I don't know anything in it. I am using PostgreSQL database, and I want to make a query and abstraction for a table. Could
How do you make a Jarvis like AI in Python?
How do you make a Jarvis like AI in Python?  Hi, I am beginner... to learn: How do you make a Jarvis like AI in Python? Try to provide me good examples or tutorials links so that I can learn the topic "How do you make
how to make an image act like upload dialog box
how to make an image act like upload dialog box  dear sir: i have made HTML page, in that page the user shuuld be able to upload any type of file... the upload dialog box to be accessed from an image, like an attachment image. i
how to make an image act like upload dialog box
how to make an image act like upload dialog box  dear sir: i have made HTML page, in that page the user shuuld be able to upload any type of file... the upload dialog box to be accessed from an image, like an attachment image. i
How to make the single click as double click in java
How to make the single click as double click in java  How to make the single click as double click in java... By clicking on a tab, the tab should... for my work... pls respond me!!!! Tks in advance
How to make a new List in Java
How to make a new List in Java  Hi, I have to create list object in Java. How to make a new List in Java? Thanks   Hi, The easiest way is to use the new operator as shown below: List list = new ArrayList
How to get data datagrid ?
How to get data datagrid ?  How to get data datagrid in jsp from arrayList in java? Code in java CategoryDao dao = new CategoryDao(); ArrayList<Categories> lstCategory = new ArrayList<Categories>
pls help me!!!!!!!
how to implement the push operation  how to implement the push operation to get a new screen for developing iphone application   In iPhone applications "PUSH NOTIFICAION" notify users when a specific update occurs
Matrix Multiplication in Java
Matrix Multiplication in Java In this Java tutorial we will demonstrate you 'Matrix Multiplication in Java' with the help of a simple example from which you can easily learn how to write a matrix multiplication program in Java
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java   Hi, i m interested to send the content of my jtextarea which i have developed in netbeans IDE to the webpage's textarea. how can i do
How to make Time picker in Java Swing
How to make Time picker in Java Swing  Hello Sir, Thank u so much for such a quick reply . I followed date picker tutorial and completed. but sir i want time picker just like date picker in which we can select hours
How to make Time picker in Java Swing
How to make Time picker in Java Swing  Hello Sir, Thank u so much for such a quick reply . I followed date picker tutorial and completed. but sir i want time picker just like date picker in which we can select hours
how to make traffic light code in java
how to make traffic light code in java  what is code of traffic light in java
Hi.. how to write more than one sheets in a excel file... pls anybody help me....
Hi.. how to write more than one sheets in a excel file... pls anybody help me....  i can write only one sheet in a excel file.. but i want to write... go to second sheet... pls help me.. here my code.. import
i dont no how to solve it pls
i dont no how to solve it pls   Calculate and display the sum of all prime number from 1 to 100 covert in java system codes
pls i need help with my assignment
pls i need help with my assignment  how to write a code that ask the user for the height of the triangle and prints the triangle using * eg if height is 3 it prints * and also using import java.util.Scanner
datagrid
datagrid   please send datagrid in jsp lot fields including date
How to add a DropDown List in Flex DataGrid
a dropDownList in dataGrid. Pls can u tell me how the selected item in my...How to add a DropDown List in Flex DataGrid  hi I am trying to add a DropDownList in a DataGrid table. After the user selects one of the items from
How to add a DropDown List in Flex DataGrid
a dropDownList in dataGrid. Pls can u tell me how the selected item in my...How to add a DropDown List in Flex DataGrid  hi I am trying to add a DropDownList in a DataGrid table. After the user selects one of the items from
ModuleNotFoundError: No module named 'make-help'
'make-help' How to remove the ModuleNotFoundError: No module named 'make...ModuleNotFoundError: No module named 'make-help'  Hi, My Python... have to install padas library. You can install make-help python with following

Ads