Click here to Skip to main content
11,642,381 members (65,769 online)
   

Java

 
AnswerRe: Java code Convert to C# Pin
Richard MacCutchan13-Nov-12 21:16
mvpRichard MacCutchan13-Nov-12 21:16 
AnswerRe: Java code Convert to C# Pin
Dave Doknjas17-Nov-12 3:17
memberDave Doknjas17-Nov-12 3:17 
QuestionTower of hanoi in java Pin
prog.sidra11-Nov-12 21:19
memberprog.sidra11-Nov-12 21:19 
AnswerRe: Tower of hanoi in java Pin
Richard MacCutchan11-Nov-12 21:49
mvpRichard MacCutchan11-Nov-12 21:49 
AnswerRe: Tower of hanoi in java Pin
TorstenH.12-Nov-12 0:22
memberTorstenH.12-Nov-12 0:22 
GeneralRe: Tower of hanoi in java Pin
prog.sidra12-Nov-12 19:58
memberprog.sidra12-Nov-12 19:58 
QuestionIf element in diagonal is 1 then its unit matrix , else it's not unit matrix Pin
Asad JOgi11-Nov-12 19:26
memberAsad JOgi11-Nov-12 19:26 
AnswerRe: If element in diagonal is 1 then its unit matrix , else it's not unit matrix Pin
TorstenH.11-Nov-12 21:15
memberTorstenH.11-Nov-12 21:15 
I assume you do not get it to work.

As this looks much like a homework, I'll give you some tips but no solution.
read them, follow them and you'll find the right way:

- variable names always start with lower case
always. ALWAYS. Please rename "ArrayMatrix" to "iArrayMatrix". Copy it and set up a second Array for testing.
You can comment them in/out by using Strg+7 in any IDE.

- use clear names
"i" and "j" are common counters. But how about "iRow" and "iCol" ? Those give you much more control on what is happening.

- delete "l"
No. One does not put the length of an Array in a variable. Simply NO.

- I think this homework is about recursion. Read about that on the web. That would need some methods - is this topic already introduced in class? can we use some?

- one boolean "bIsMatrix" should be enough. give it a init value "false" and use the loops to set it to true when you find a value "1" in the diagonal. Set it "false" if not. Read "bIsMatrix" after the loops to present result.
regards Torsten
When I'm not working

AnswerRe: If element in diagonal is 1 then its unit matrix , else it's not unit matrix Pin
BobJanova13-Nov-12 0:06
memberBobJanova13-Nov-12 0:06 
QuestionError show ImageIcon ??? Pin
nghia09t39-Nov-12 19:34
membernghia09t39-Nov-12 19:34 
AnswerRe: Error show ImageIcon ??? Pin
Richard MacCutchan9-Nov-12 23:32
mvpRichard MacCutchan9-Nov-12 23:32 
AnswerRe: Error show ImageIcon ??? Pin
TorstenH.10-Nov-12 14:02
memberTorstenH.10-Nov-12 14:02 
GeneralRe: Error show ImageIcon ??? Pin
Gowtham Gutha15-Nov-12 6:46
memberGowtham Gutha15-Nov-12 6:46 
GeneralRe: Error show ImageIcon ??? Pin
TorstenH.15-Nov-12 9:00
memberTorstenH.15-Nov-12 9:00 
GeneralRe: Error show ImageIcon ??? Pin
Gowtham Gutha16-Nov-12 7:08
memberGowtham Gutha16-Nov-12 7:08 
GeneralRe: Error show ImageIcon ??? Pin
TorstenH.18-Nov-12 19:10
memberTorstenH.18-Nov-12 19:10 
AnswerRe: Error show ImageIcon ??? Pin
Gowtham Gutha15-Nov-12 6:43
memberGowtham Gutha15-Nov-12 6:43 
Questionhow to create digital survey android and php?? Pin
Luis Antonio Mantilla9-Nov-12 12:22
memberLuis Antonio Mantilla9-Nov-12 12:22 
QuestionAny Java Book Recommend Pin
waylife7-Nov-12 19:14
memberwaylife7-Nov-12 19:14 
AnswerRe: Any Java Book Recommend Pin
Peter_in_27808-Nov-12 1:13
memberPeter_in_27808-Nov-12 1:13 
GeneralRe: Any Java Book Recommend Pin
waylife12-Nov-12 22:07
memberwaylife12-Nov-12 22:07 
AnswerRe: Any Java Book Recommend Pin
Gowtham Gutha9-Nov-12 9:02
memberGowtham Gutha9-Nov-12 9:02 
GeneralRe: Any Java Book Recommend Pin
waylife12-Nov-12 22:08
memberwaylife12-Nov-12 22:08 
GeneralRe: Any Java Book Recommend Pin
Gowtham Gutha15-Nov-12 0:22
memberGowtham Gutha15-Nov-12 0:22 
GeneralRe: Any Java Book Recommend Pin
waylife15-Nov-12 3:10
memberwaylife15-Nov-12 3:10 

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.150731.1 | Last Updated 2 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid