Click here to Skip to main content
14,359,781 members
   

Java

 
QuestionBetweennessCentrality Pin
Member 1369070822-Feb-18 0:35
memberMember 1369070822-Feb-18 0:35 
RantRe: BetweennessCentrality Pin
Richard Deeming22-Feb-18 1:39
mveRichard Deeming22-Feb-18 1:39 
GeneralRe: BetweennessCentrality Pin
jschell23-Feb-18 14:42
memberjschell23-Feb-18 14:42 
QuestionWeather Java application Pin
Member 1367572517-Feb-18 4:20
memberMember 1367572517-Feb-18 4:20 
AnswerRe: Weather Java application Pin
Richard MacCutchan17-Feb-18 5:01
protectorRichard MacCutchan17-Feb-18 5:01 
AnswerRe: Weather Java application Pin
jschell17-Feb-18 12:44
memberjschell17-Feb-18 12:44 
AnswerRe: Weather Java application Pin
Lshadown19-Feb-18 9:30
memberLshadown19-Feb-18 9:30 
QuestionFor loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 12:39
memberIrishCoder9916-Feb-18 12:39 
Hello,
I am learning hoe to program in Java and have come up with some code to practice what I have learned. I have created a program to enter password and confirm it and the only way I have found to do this is to exit the program and try it again. Please help

Scanner scanner3 = new Scanner(System.in);
    String passwordConfirm = scanner3.nextLine();
    
    if (passwordConfirm.equals(password) ) {
      System.out.println("Your password has been confirmed");
    }
      else {
        System.out.println("The passwords do not match, please try again below");
        
       Scanner scanner5 = new Scanner(System.in);
       String passConfirm = scanner5.nextLine();
       
       if (passConfirm.equals(password) ) {
         System.out.println("The passwords now match, thank you");
         
         scanner5.close(); 
       }
         else {
           System.out.println("The passwords still do not match, please reload the app to try again");
          
           /**This line of code exits the Java program if the password is still not confirmed, forcing the user to reload the program to try again**/
           System.exit(0);
         }
      }



Your help is greatly appreciated! I have the same problem with confirming email but once I figure out password, I can do email myself.
AnswerRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 13:07
mvephil.o16-Feb-18 13:07 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 13:52
memberIrishCoder9916-Feb-18 13:52 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 13:53
mvephil.o16-Feb-18 13:53 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 14:10
memberIrishCoder9916-Feb-18 14:10 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 22:17
mvephil.o16-Feb-18 22:17 
AnswerRe: For loops, how to jump back to the start of the loop efficiently? Pin
Richard MacCutchan16-Feb-18 22:54
protectorRichard MacCutchan16-Feb-18 22:54 
Questionjava compiler Pin
Member 136697249-Feb-18 0:06
memberMember 136697249-Feb-18 0:06 
AnswerRe: java compiler Pin
Richard Deeming9-Feb-18 1:05
mveRichard Deeming9-Feb-18 1:05 
AnswerRe: java compiler Pin
Parul Thakur18-Feb-18 2:21
memberParul Thakur18-Feb-18 2:21 
Question404 Error in Hibernate Web App Pin
Member 136593343-Feb-18 5:32
memberMember 136593343-Feb-18 5:32 
AnswerRe: 404 Error in Hibernate Web App Pin
Member 136593347-Feb-18 3:44
memberMember 136593347-Feb-18 3:44 
QuestionAdding Image Into Combox Pin
Member 1360161428-Jan-18 7:53
memberMember 1360161428-Jan-18 7:53 
AnswerRe: Adding Image Into Combox Pin
Richard MacCutchan28-Jan-18 22:41
protectorRichard MacCutchan28-Jan-18 22:41 
Questionany one has idea about how to get memory usage of remote server using java? Pin
Member 1363596722-Jan-18 21:37
memberMember 1363596722-Jan-18 21:37 
AnswerRe: any one has idea about how to get memory usage of remote server using java? Pin
Richard MacCutchan22-Jan-18 22:44
protectorRichard MacCutchan22-Jan-18 22:44 
GeneralRe: any one has idea about how to get memory usage of remote server using java? Pin
Member 1363596722-Jan-18 23:30
memberMember 1363596722-Jan-18 23:30 
GeneralRe: any one has idea about how to get memory usage of remote server using java? Pin
Member 1363596730-Jan-18 0:13
memberMember 1363596730-Jan-18 0:13 

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.