Click here to Skip to main content
14,242,951 members
   

Java

 
QuestionScala Code Review Pin
traubad10-Nov-18 12:46
membertraubad10-Nov-18 12:46 
AnswerRe: Scala Code Review Pin
Richard MacCutchan10-Nov-18 21:07
protectorRichard MacCutchan10-Nov-18 21:07 
Questionduplicate elmente in Array multiply Pin
Nasif228-Nov-18 13:08
memberNasif228-Nov-18 13:08 
Questionjava Pin
Member 140430484-Nov-18 23:51
memberMember 140430484-Nov-18 23:51 
AnswerRe: java Pin
Richard MacCutchan5-Nov-18 5:17
protectorRichard MacCutchan5-Nov-18 5:17 
AnswerRe: java Pin
mohit gite16-Nov-18 21:25
membermohit gite16-Nov-18 21:25 
AnswerRe: java Pin
GiteHrudaya28-Nov-18 18:48
memberGiteHrudaya28-Nov-18 18:48 
AnswerRe: java Pin
GiteHrudaya2-Dec-18 22:59
memberGiteHrudaya2-Dec-18 22:59 
import java.util.Scanner;

public class test
{
    public static final int SENTINEL = -1;
    public static void main(String[] args) {
        Scanner kb = new Scanner(System.in);
        int score = 0;
        int sum = 0;

        System.out.println("Enter numbers here");
        while (score >= 0) {
            if (score <= -1) {
            score = kb.nextInt();
            sum += score;
            score = 0;
        }
            System.out.println(sum);
    }
  }
}

Questionjava Pin
mohit gite4-Nov-18 21:45
membermohit gite4-Nov-18 21:45 
AnswerRe: java Pin
Richard MacCutchan4-Nov-18 23:05
protectorRichard MacCutchan4-Nov-18 23:05 
AnswerRe: java Pin
GiteHrudaya29-Nov-18 23:13
memberGiteHrudaya29-Nov-18 23:13 
Questionjava Pin
Member 140430483-Nov-18 21:03
memberMember 140430483-Nov-18 21:03 
AnswerRe: java Pin
Richard MacCutchan3-Nov-18 21:25
protectorRichard MacCutchan3-Nov-18 21:25 
GeneralRe: java Pin
Member 140430483-Nov-18 21:38
memberMember 140430483-Nov-18 21:38 
GeneralRe: java Pin
Richard MacCutchan3-Nov-18 22:17
protectorRichard MacCutchan3-Nov-18 22:17 
GeneralRe: java Pin
Member 140430483-Nov-18 22:25
memberMember 140430483-Nov-18 22:25 
GeneralRe: java Pin
Richard MacCutchan3-Nov-18 22:32
protectorRichard MacCutchan3-Nov-18 22:32 
GeneralRe: java Pin
Member 140430483-Nov-18 23:02
memberMember 140430483-Nov-18 23:02 
GeneralRe: java Pin
Richard MacCutchan4-Nov-18 1:15
protectorRichard MacCutchan4-Nov-18 1:15 
Questionjava Pin
mohit gite2-Nov-18 20:58
membermohit gite2-Nov-18 20:58 
AnswerRe: java Pin
Richard MacCutchan2-Nov-18 23:06
protectorRichard MacCutchan2-Nov-18 23:06 
GeneralRe: java Pin
mohit gite4-Nov-18 20:28
membermohit gite4-Nov-18 20:28 
Questionjava Pin
Member 1402833822-Oct-18 4:12
memberMember 1402833822-Oct-18 4:12 
AnswerRe: java Pin
Richard MacCutchan22-Oct-18 5:55
protectorRichard MacCutchan22-Oct-18 5:55 
GeneralRe: java Pin
Member 1402833822-Oct-18 6:56
memberMember 1402833822-Oct-18 6:56 

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.