Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa IDE-Questions how to make a matrix like datagrid in ide in java pls help
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Priti Sharma
how to make a matrix like datagrid in ide in java pls help
1 Answer(s)      2 years and 7 months ago
Posted in : IDE Questions


how to make a datagrid mainly matrix in ajava standalone app


Advertisement
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] + " ");
                        }
                }
        }
}


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
hi , i cant make this programmer , can any one help me to make it pls - Java Beginners
hi , i cant make this programmer , can any one help me to make it pls   In this exercise we would like to build a system in java ( set of classes...://www.roseindia.net/java/example/java/io/ Thanks  i want to make the whole
Advertisements
pls. help me - Java Beginners
pls. help me  please help me i do need now if its okay... Consider the method headings: void funcOne(int[] alpha, int size) int funcSum(int...[] list = new int[50]; int[] Alist = new int[60]; int num; Write Java
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
How can i write a datagrid coding - Java Beginners
How can i write a datagrid coding  Hi, I want make a datagrid..plz send me datagrid coding using mysql database and jsp..plz tell me brief description about grid how can i connect datagrid with database. Thanks
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 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
pls help me with this question
pls help me with this question  how to write a program in C++ using encapsulation,polymorphism,inheritance and abstraction?(all these concepts should come in a single program
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 enter matrix data into a table of swings - Java Beginners
how to enter matrix data into a table of swings   Hi frends, I want to display a matrix data into a particular table...... Actually if the user... into table..not any this matrix, i should display any size of matrix... please help me
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
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
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 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
do the combinations in java, pls help me its urhent - Development process
do the combinations in java, pls help me its urhent  import... one help me: action when condition1 and condition3 action when condition1... and condition5 if the i/p is like this action when condition1 or (condition2
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
Java, matrix
Java, matrix  java program to get output on the basis of users choice... of matrix.   Hello Friend, Try this: import java.util.*; class...]; int[][] C = new int[2][2]; System.out.println("Enter elements for matrix
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>
matrix calculator - Java Beginners
matrix calculator  hi..... can you help me in writing source code of matrix calculator in java... i know you are the best you can do it!!! show yourself
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
Parallel multiplication matrix in java
Parallel multiplication matrix in java  hello dear I need parallel multiply matrix in java algorithm to account speed up and efficiency great wishes
Java Transpose of a matrix
Java Transpose of a matrix In this section, you will learn how to determine the transpose of a matrix.The transpose of a matrix is formed by interchanging the rows and columns of a matrix such that row i of matrix becomes column i
Dividing of two Matrix in Java
;Here you will learn how to use two matrix array for developing Java program.  The java two dimensional array program is operate the two matrix. Now we... Dividing of two Matrix in Java   
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
datagrid
datagrid   please send datagrid in jsp lot fields including date
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
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
Advertisements
 

 

 

DMCA.com