Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Double matrix

public class DoubleMatrix {
    public static void main(String[] args) {
        int array[][] = {
                {1, 2, 3},
                {4, 5, 6},
                {7, 8, 9},
        };
        int n[][] = new int[3][3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                n[i][j] = array[i][j] * 2;
                System.out.print(n[i][j] + " ");
            }
            System.out.println();
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: How to disable special characters on keyboard in android 
Java :: LayerRenderer 
Java :: print max activity by greedy technique in java 
Java :: jdbc api in java 
Java :: for loop in how to call class in android studio 
Java :: int array to map java 
Java :: change activity main drawer items text color android 
Java :: data.sql not loading in springboot 
Java :: default constructor java 
Java :: executors java 
Java :: can you override static methods in java 
Java :: java length of array 
Java :: get last day of month java 
Java :: android list to string 
Java :: sorting algorithms in java 
Java :: synchronized block in java 
Java :: java union type 
Java :: a ^ b java 
Java :: Java if Keyword 
Java :: Java array repeating 
Java :: java 8 list to map with occurrences 
Java :: bootstrap error message 
Sql :: oracle change nls_date_format permanently 
Sql :: oracle find all tables with column name 
Sql :: sql server current date without time 
Sql :: get column name sql server 
Sql :: Cannot load driver class: com.mysql.cj.jdbc.Driver 
Sql :: mysql database stopped xampp mac 
Sql :: c# datetime to sql server datetime 
Sql :: Mysql query add column with default string value 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =