Click here to Skip to main content
15,887,135 members
Home / Discussions / Java
   

Java

 
QuestionJava Pin
Angel Roy2-Jan-15 0:45
Angel Roy2-Jan-15 0:45 
AnswerRe: Java Pin
Richard MacCutchan2-Jan-15 4:56
mveRichard MacCutchan2-Jan-15 4:56 
QuestionHi friends I need some help regarding the following program will you please help me Pin
Leela Krishna Yadav1-Jan-15 18:10
Leela Krishna Yadav1-Jan-15 18:10 
QuestionRe: Hi friends I need some help regarding the following program will you please help me Pin
Richard MacCutchan1-Jan-15 22:30
mveRichard MacCutchan1-Jan-15 22:30 
AnswerRe: Hi friends I need some help regarding the following program will you please help me Pin
Leela Krishna Yadav2-Jan-15 4:42
Leela Krishna Yadav2-Jan-15 4:42 
GeneralRe: Hi friends I need some help regarding the following program will you please help me Pin
Richard MacCutchan2-Jan-15 4:54
mveRichard MacCutchan2-Jan-15 4:54 
GeneralRe: Hi friends I need some help regarding the following program will you please help me Pin
Leela Krishna Yadav2-Jan-15 5:14
Leela Krishna Yadav2-Jan-15 5:14 
AnswerRe: Hi friends I need some help regarding the following program will you please help me Pin
Richard MacCutchan2-Jan-15 5:46
mveRichard MacCutchan2-Jan-15 5:46 
You should use "binary chop", not random values. For each response you need to take half the distance between the current and previous guess. If the user says "higher" then add it to the guess, else subtract it. So the sequence for your values would be something like:
        Computer : 75              User : chose 53
                                   Lower
subtract half of 75 - 0   : 38     Higher
add half of 75 - 38       : 57     Lower
subtract half of 57 - 38  : 48     Higher
add half of 57 - 48       : 52     Higher
add half of 57 - 52       : 54     Lower
subtract half of 54 - 52  : 53     Correct!

GeneralRe: Hi friends I need some help regarding the following program will you please help me Pin
Leela Krishna Yadav2-Jan-15 5:59
Leela Krishna Yadav2-Jan-15 5:59 
QuestionHelp option in a JAR FILE Pin
ramina sen30-Dec-14 20:40
ramina sen30-Dec-14 20:40 
AnswerRe: Help option in a JAR FILE Pin
Richard MacCutchan30-Dec-14 22:09
mveRichard MacCutchan30-Dec-14 22:09 
GeneralRe: Help option in a JAR FILE Pin
ramina sen30-Dec-14 22:16
ramina sen30-Dec-14 22:16 
GeneralRe: Help option in a JAR FILE Pin
Richard MacCutchan30-Dec-14 22:47
mveRichard MacCutchan30-Dec-14 22:47 
Questionproblem to connect Java EE application to database Pin
Imad_dz29-Dec-14 6:31
Imad_dz29-Dec-14 6:31 
SuggestionRe: problem to connect Java EE application to database Pin
Richard MacCutchan29-Dec-14 23:13
mveRichard MacCutchan29-Dec-14 23:13 
Questionpagination in java swing Pin
bilalshameem25-Dec-14 23:44
bilalshameem25-Dec-14 23:44 
AnswerRe: pagination in java swing Pin
Richard MacCutchan26-Dec-14 1:05
mveRichard MacCutchan26-Dec-14 1:05 
Question[EDIT] CLASS cannot be resolved to a type Pin
AmbiguousName23-Dec-14 8:56
AmbiguousName23-Dec-14 8:56 
QuestionRe: CLASS cannot be resolved to a type Pin
Richard MacCutchan23-Dec-14 21:38
mveRichard MacCutchan23-Dec-14 21:38 
AnswerRe: [EDIT] CLASS cannot be resolved to a type Pin
alexey_s22-Jan-15 8:15
alexey_s22-Jan-15 8:15 
QuestionGabor Patch Generator Pin
amirsharifzadeh20-Dec-14 22:01
amirsharifzadeh20-Dec-14 22:01 
SuggestionRe: Gabor Patch Generator Pin
Richard MacCutchan20-Dec-14 22:14
mveRichard MacCutchan20-Dec-14 22:14 
QuestionHow to Use Delimiters in my program(Does not work and Crashes) Pin
Kaytlyn Grace Lau20-Dec-14 7:44
Kaytlyn Grace Lau20-Dec-14 7:44 
AnswerRe: How to Use Delimiters in my program(Does not work and Crashes) Pin
Richard MacCutchan20-Dec-14 21:06
mveRichard MacCutchan20-Dec-14 21:06 
AnswerRe: How to Use Delimiters in my program(Does not work and Crashes) Pin
Richard MacCutchan21-Dec-14 4:01
mveRichard MacCutchan21-Dec-14 4:01 

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.