Click here to Skip to main content
14,333,705 members
   

Java

 
Questionhow to start learning java Pin
Member 1383037827-May-18 23:23
memberMember 1383037827-May-18 23:23 
AnswerRe: how to start learning java Pin
Richard MacCutchan28-May-18 22:16
protectorRichard MacCutchan28-May-18 22:16 
QuestionNeed help choosing test API Pin
Member 1384132023-May-18 8:37
memberMember 1384132023-May-18 8:37 
AnswerRe: Error in Integer mode Pin
Richard MacCutchan10-May-18 1:16
protectorRichard MacCutchan10-May-18 1:16 
GeneralRe: Error in Integer mode Pin
Richard Deeming10-May-18 1:26
mveRichard Deeming10-May-18 1:26 
GeneralRe: Error in Integer mode Pin
Richard MacCutchan10-May-18 1:27
protectorRichard MacCutchan10-May-18 1:27 
QuestionHalp please? Dice roll game. Pin
Gril13376-May-18 7:01
memberGril13376-May-18 7:01 
AnswerRe: Halp please? Dice roll game. Pin
Richard MacCutchan6-May-18 21:52
protectorRichard MacCutchan6-May-18 21:52 
Your call to nextInt returns a number in the range [0..5] so you will end up with a number in the range [1..6], so you can never roll an 8 or a 9, as specified in your examples.

To get the highest number you need to write a method which takes two numbers and returns the relevant value. The algorithm for this is fairly straightforward. Compare the two numbers to get the higher number (or either one if they are equal). Multiply the higher number by 10 and add the lower, which gives the "highest" value.
QuestionSolving symmetric tree problem by recursive solution Pin
ElenaRez6-May-18 6:52
memberElenaRez6-May-18 6:52 
AnswerRe: Solving symmetric tree problem by recursive solution Pin
Richard MacCutchan6-May-18 21:44
protectorRichard MacCutchan6-May-18 21:44 
QuestionAsk a Question All Questions All Unanswered Mine FAQ I need to compare one file each line with other file all lines which separated by two colon separate .if matches with names I need print matched one in java Pin
Member 138094092-May-18 23:07
memberMember 138094092-May-18 23:07 
AnswerRe: Ask a Question All Questions All Unanswered Mine FAQ I need to compare one file each line with other file all lines which separated by two colon separate .if matches with names I need print matched one in java Pin
Richard MacCutchan3-May-18 0:44
protectorRichard MacCutchan3-May-18 0:44 
QuestionDeep copy of List<> without knowing specific list type Pin
jackbrownii30-Apr-18 10:55
professionaljackbrownii30-Apr-18 10:55 
AnswerRe: Deep copy of List<> without knowing specific list type Pin
Manish K. Agarwal27-May-18 21:32
memberManish K. Agarwal27-May-18 21:32 
QuestionStudent needing assistance while loop Pin
Victor McNeal21-Apr-18 9:15
memberVictor McNeal21-Apr-18 9:15 
AnswerRe: Student needing assistance while loop Pin
Richard MacCutchan21-Apr-18 20:56
protectorRichard MacCutchan21-Apr-18 20:56 
AnswerMessage Closed Pin
9-Sep-19 23:31
memberMember 145858379-Sep-19 23:31 
QuestionJava JUnit test error Pin
CHUCHU YAO20-Apr-18 13:23
memberCHUCHU YAO20-Apr-18 13:23 
AnswerRe: Java JUnit test error Pin
Richard MacCutchan20-Apr-18 20:43
protectorRichard MacCutchan20-Apr-18 20:43 
AnswerRe: Java JUnit test error Pin
jschell21-Apr-18 6:31
memberjschell21-Apr-18 6:31 
GeneralRe: Java JUnit test error Pin
Richard MacCutchan21-Apr-18 20:58
protectorRichard MacCutchan21-Apr-18 20:58 
QuestionJAVA Swing GUI Invoice - problem with correct actionPerformed Pin
Member 1378720218-Apr-18 20:59
memberMember 1378720218-Apr-18 20:59 
QuestionRe: JAVA Swing GUI Invoice - problem with correct actionPerformed Pin
Richard MacCutchan18-Apr-18 21:51
protectorRichard MacCutchan18-Apr-18 21:51 
AnswerRe: JAVA Swing GUI Invoice - problem with correct actionPerformed Pin
Member 1378720219-Apr-18 0:54
memberMember 1378720219-Apr-18 0:54 
GeneralRe: JAVA Swing GUI Invoice - problem with correct actionPerformed Pin
Richard MacCutchan19-Apr-18 1:02
protectorRichard MacCutchan19-Apr-18 1:02 

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

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