Click here to Skip to main content
   

Java

 
GeneralRe: Java code Convert to C# PinmvpRichard MacCutchan14-Nov-12 2:34 
AnswerRe: Java code Convert to C# PinmvpRichard MacCutchan13-Nov-12 22:16 
AnswerRe: Java code Convert to C# PinmemberDave Doknjas17-Nov-12 4:17 
QuestionTower of hanoi in java Pinmemberprog.sidra11-Nov-12 22:19 
AnswerRe: Tower of hanoi in java PinmvpRichard MacCutchan11-Nov-12 22:49 
AnswerRe: Tower of hanoi in java PinmemberTorstenH.12-Nov-12 1:22 
GeneralRe: Tower of hanoi in java Pinmemberprog.sidra12-Nov-12 20:58 
QuestionIf element in diagonal is 1 then its unit matrix , else it's not unit matrix [modified] PinmemberAsad JOgi11-Nov-12 20:26 
class Matrix{
public static void main(String []args){
 
    int ArrayMatrix [] [] = {
                 {1,0,0,0,0},
                 {0,1,0,0,0},
                 {0,0,1,0,0},
                 {0,0,0,1,0},
                 {0,0,0,0,1},
 
                };
 
    int l = ArrayMatrix.length;
    int i,j;
    boolean a=true;
    boolean b=false;
 
    for( i=0;i<l;i++)
    {
 
       for(j=0;j<l;j++)
       {
                System.out.print(ArrayMatrix[i][j]+" ");
        /*
 
            //if(ArrayMatrix[i][j]==1)
            if(boolean b==true)
            {
            System.out.println("Matrix is Unit");
            }
 
            else
            {
            System.out.println("Matrix is not Unit");
            }
        */
 

       }//end inner for

        System.out.println("");
 
    }//end outer for

    System.out.println("\n Array is Unit Matrix");
    
 
}//end main Method
}//end class Matrix
Asad Ali Jogi


modified 12-Nov-12 1:43am.

AnswerRe: If element in diagonal is 1 then its unit matrix , else it's not unit matrix PinmemberTorstenH.11-Nov-12 22:15 
AnswerRe: If element in diagonal is 1 then its unit matrix , else it's not unit matrix PinmemberBobJanova13-Nov-12 1:06 
QuestionError show ImageIcon ??? Pinmembernghia09t39-Nov-12 20:34 
AnswerRe: Error show ImageIcon ??? PinmvpRichard MacCutchan10-Nov-12 0:32 
AnswerRe: Error show ImageIcon ??? PinmemberTorstenH.10-Nov-12 15:02 
GeneralRe: Error show ImageIcon ??? PinmemberGowtham Gutha15-Nov-12 7:46 
GeneralRe: Error show ImageIcon ??? PinmemberTorstenH.15-Nov-12 10:00 
GeneralRe: Error show ImageIcon ??? PinmemberGowtham Gutha16-Nov-12 8:08 
GeneralRe: Error show ImageIcon ??? PinmemberTorstenH.18-Nov-12 20:10 
AnswerRe: Error show ImageIcon ??? PinmemberGowtham Gutha15-Nov-12 7:43 
Questionhow to create digital survey android and php?? PinmemberLuis Antonio Mantilla9-Nov-12 13:22 
QuestionAny Java Book Recommend Pinmemberwaylife7-Nov-12 20:14 
AnswerRe: Any Java Book Recommend PinmemberPeter_in_27808-Nov-12 2:13 
GeneralRe: Any Java Book Recommend Pinmemberwaylife12-Nov-12 23:07 
AnswerRe: Any Java Book Recommend PinmemberGowtham Gutha9-Nov-12 10:02 
GeneralRe: Any Java Book Recommend Pinmemberwaylife12-Nov-12 23:08 
GeneralRe: Any Java Book Recommend PinmemberGowtham Gutha15-Nov-12 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 23 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid