Click here to Skip to main content
15,888,286 members
Home / Discussions / Java
   

Java

 
RantRe: BetweennessCentrality Pin
Richard Deeming22-Feb-18 0:39
mveRichard Deeming22-Feb-18 0:39 
GeneralRe: BetweennessCentrality Pin
jschell23-Feb-18 13:42
jschell23-Feb-18 13:42 
QuestionWeather Java application Pin
Member 1367572517-Feb-18 3:20
Member 1367572517-Feb-18 3:20 
AnswerRe: Weather Java application Pin
Richard MacCutchan17-Feb-18 4:01
mveRichard MacCutchan17-Feb-18 4:01 
AnswerRe: Weather Java application Pin
jschell17-Feb-18 11:44
jschell17-Feb-18 11:44 
AnswerRe: Weather Java application Pin
Lshadown19-Feb-18 8:30
Lshadown19-Feb-18 8:30 
QuestionFor loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 11:39
IrishCoder9916-Feb-18 11:39 
AnswerRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 12:07
professionalphil.o16-Feb-18 12:07 
A do-while loop is perffect for that:
Java
String passwordConfirm;
do {
   System.out.println("Please enter password:");
   passwordConfirm = scanner3.nextLine();
} while (!passwordConfirm.equals(password));
System.out.println("Your password has been confirmed");

will keep asking for password until the correct one is provided.
If you want only a fixed number of tries, you may have to declare a counter variable, increased in the loop, and tested in the while statement.
"I'm neither for nor against, on the contrary." John Middle

GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 12:52
IrishCoder9916-Feb-18 12:52 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 12:53
professionalphil.o16-Feb-18 12:53 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 13:10
IrishCoder9916-Feb-18 13:10 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 21:17
professionalphil.o16-Feb-18 21:17 
AnswerRe: For loops, how to jump back to the start of the loop efficiently? Pin
Richard MacCutchan16-Feb-18 21:54
mveRichard MacCutchan16-Feb-18 21:54 
Questionjava compiler Pin
Member 136697248-Feb-18 23:06
Member 136697248-Feb-18 23:06 
AnswerRe: java compiler Pin
Richard Deeming9-Feb-18 0:05
mveRichard Deeming9-Feb-18 0:05 
AnswerRe: java compiler Pin
Parul Thakur18-Feb-18 1:21
Parul Thakur18-Feb-18 1:21 
Question404 Error in Hibernate Web App Pin
Member 136593343-Feb-18 4:32
Member 136593343-Feb-18 4:32 
AnswerRe: 404 Error in Hibernate Web App Pin
Member 136593347-Feb-18 2:44
Member 136593347-Feb-18 2:44 
QuestionAdding Image Into Combox Pin
Member 1360161428-Jan-18 6:53
Member 1360161428-Jan-18 6:53 
AnswerRe: Adding Image Into Combox Pin
Richard MacCutchan28-Jan-18 21:41
mveRichard MacCutchan28-Jan-18 21:41 
Questionany one has idea about how to get memory usage of remote server using java? Pin
Member 1363596722-Jan-18 20:37
Member 1363596722-Jan-18 20:37 
AnswerRe: any one has idea about how to get memory usage of remote server using java? Pin
Richard MacCutchan22-Jan-18 21:44
mveRichard MacCutchan22-Jan-18 21:44 
GeneralRe: any one has idea about how to get memory usage of remote server using java? Pin
Member 1363596722-Jan-18 22:30
Member 1363596722-Jan-18 22:30 
GeneralRe: any one has idea about how to get memory usage of remote server using java? Pin
Member 1363596729-Jan-18 23:13
Member 1363596729-Jan-18 23:13 
GeneralRe: any one has idea about how to get memory usage of remote server using java? Pin
Richard MacCutchan30-Jan-18 0:14
mveRichard MacCutchan30-Jan-18 0:14 

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.