Click here to Skip to main content
14,978,175 members
Home / Discussions / Java
   

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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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.