SlideShare a Scribd company logo

Need help debugging this assignmentimport java.util.;public c.pdf

Need help debugging this assignment import java.util.*; public class DebugSeven2 { public static void main(String[] args) { String str; int x; int length; int start; int num; int lastSpace = -1; int sum = 0; String partStr; Scanner in = new Scanner(System.in); System.out.print("Enter a series of integers separated by spaces >> "); str = in.nextLine; length = str.length(); for(x = 0; x <= length; ++x) { if(str.charAt(x) == ' ') { partStr = str.substring(lastSpace + 1, y); num = Integer.parseInt(partStr); System.out.println(" " + num); sum += number; lastSpace = x; } } partStr = str.substring(lastSpace + 1, length); num = Integer.parseInt(partStr); System.out.println(" " + num); sum += num; System.out.println(" -------------------" + "\nThe sum of the integers is " + sum); } }.

1 of 2
Download to read offline
Need help debugging this assignment
import java.util.*;
public class DebugSeven2
{
public static void main(String[] args)
{
String str;
int x;
int length;
int start;
int num;
int lastSpace = -1;
int sum = 0;
String partStr;
Scanner in = new Scanner(System.in);
System.out.print("Enter a series of integers separated by spaces >> ");
str = in.nextLine;
length = str.length();
for(x = 0; x <= length; ++x)
{
if(str.charAt(x) == ' ')
{
partStr = str.substring(lastSpace + 1, y);
num = Integer.parseInt(partStr);
System.out.println(" " + num);
sum += number;
lastSpace = x;
}
}
partStr = str.substring(lastSpace + 1, length);
num = Integer.parseInt(partStr);
System.out.println(" " + num);
sum += num;
System.out.println(" -------------------" +
"nThe sum of the integers is " + sum);
}
}

Recommended

NECESITO TODAS LAS RESPUESTAS CORRECTAS1. Tom quer�a crear un me.pdf
NECESITO TODAS LAS RESPUESTAS CORRECTAS1. Tom quer�a crear un me.pdfNECESITO TODAS LAS RESPUESTAS CORRECTAS1. Tom quer�a crear un me.pdf
NECESITO TODAS LAS RESPUESTAS CORRECTAS1. Tom quer�a crear un me.pdfamazonedistributors
 
Need answers for the four questions at the end of case. When Micro.pdf
Need answers for the four questions at the end of case. When Micro.pdfNeed answers for the four questions at the end of case. When Micro.pdf
Need answers for the four questions at the end of case. When Micro.pdfamazonedistributors
 
Necesito ayuda con todas estas preguntas.1-Enumera algunas similit.pdf
Necesito ayuda con todas estas preguntas.1-Enumera algunas similit.pdfNecesito ayuda con todas estas preguntas.1-Enumera algunas similit.pdf
Necesito ayuda con todas estas preguntas.1-Enumera algunas similit.pdfamazonedistributors
 
Necesita ayuda con estas preguntas de bioqu�mica por favorPregunt.pdf
Necesita ayuda con estas preguntas de bioqu�mica por favorPregunt.pdfNecesita ayuda con estas preguntas de bioqu�mica por favorPregunt.pdf
Necesita ayuda con estas preguntas de bioqu�mica por favorPregunt.pdfamazonedistributors
 
n this exercise, you modify the Check Digit application from this ch.pdf
n this exercise, you modify the Check Digit application from this ch.pdfn this exercise, you modify the Check Digit application from this ch.pdf
n this exercise, you modify the Check Digit application from this ch.pdfamazonedistributors
 
NavCom vende sistemas GPS a un fabricante de autom�viles. �C�mo pued.pdf
NavCom vende sistemas GPS a un fabricante de autom�viles. �C�mo pued.pdfNavCom vende sistemas GPS a un fabricante de autom�viles. �C�mo pued.pdf
NavCom vende sistemas GPS a un fabricante de autom�viles. �C�mo pued.pdfamazonedistributors
 
Name the 4 conditions for regression analysis and give evidence on w.pdf
Name the 4 conditions for regression analysis and give evidence on w.pdfName the 4 conditions for regression analysis and give evidence on w.pdf
Name the 4 conditions for regression analysis and give evidence on w.pdfamazonedistributors
 
namespace Habib_OLA4 { internal class Program { .pdf
namespace Habib_OLA4 {    internal class Program    {       .pdfnamespace Habib_OLA4 {    internal class Program    {       .pdf
namespace Habib_OLA4 { internal class Program { .pdfamazonedistributors
 

More Related Content

More from amazonedistributors

namespace Habib_OLA4 { internal class Program { .pdf
namespace Habib_OLA4 {     internal class Program     {     .pdfnamespace Habib_OLA4 {     internal class Program     {     .pdf
namespace Habib_OLA4 { internal class Program { .pdfamazonedistributors
 
Nancy is carrying out cost-benefit analysis for a project. If undert.pdf
Nancy is carrying out cost-benefit analysis for a project. If undert.pdfNancy is carrying out cost-benefit analysis for a project. If undert.pdf
Nancy is carrying out cost-benefit analysis for a project. If undert.pdfamazonedistributors
 
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdf
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdfNecesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdf
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdfamazonedistributors
 
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdf
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdfn2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdf
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdfamazonedistributors
 
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdf
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdfNarrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdf
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdfamazonedistributors
 
Narcisco Publications established the following standard price and c.pdf
Narcisco Publications established the following standard price and c.pdfNarcisco Publications established the following standard price and c.pdf
Narcisco Publications established the following standard price and c.pdfamazonedistributors
 
not sure what the equations isy^=60.5+2.50x.pdf
not sure what the equations isy^=60.5+2.50x.pdfnot sure what the equations isy^=60.5+2.50x.pdf
not sure what the equations isy^=60.5+2.50x.pdfamazonedistributors
 
No plagiarism and at least 250 wordsBriefly describe the dif.pdf
No plagiarism and at least 250 wordsBriefly describe the dif.pdfNo plagiarism and at least 250 wordsBriefly describe the dif.pdf
No plagiarism and at least 250 wordsBriefly describe the dif.pdfamazonedistributors
 
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdf
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdfNOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdf
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdfamazonedistributors
 
not taxable and any related input tax is therefore not deductible. T.pdf
not taxable and any related input tax is therefore not deductible. T.pdfnot taxable and any related input tax is therefore not deductible. T.pdf
not taxable and any related input tax is therefore not deductible. T.pdfamazonedistributors
 
Normal Distribution Problem. Porphyrin is a pigment in blood proto.pdf
Normal Distribution Problem.   Porphyrin is a pigment in blood proto.pdfNormal Distribution Problem.   Porphyrin is a pigment in blood proto.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood proto.pdfamazonedistributors
 
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdf
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdfNon-liquidating DistributionsCorporation is a calendar year taxpay.pdf
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdfamazonedistributors
 
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdf
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdfNonylphenol (NP) is commonly found in municipal wastewater and solid.pdf
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdfamazonedistributors
 
North Korea Is a socialist state. The system is a single-party regim.pdf
North Korea Is a socialist state. The system is a single-party regim.pdfNorth Korea Is a socialist state. The system is a single-party regim.pdf
North Korea Is a socialist state. The system is a single-party regim.pdfamazonedistributors
 
Name A. Refer to the table below to answer the questions that follo.pdf
Name A. Refer to the table below to answer the questions that follo.pdfName A. Refer to the table below to answer the questions that follo.pdf
Name A. Refer to the table below to answer the questions that follo.pdfamazonedistributors
 
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdf
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdfNormal curve with non-integer z-scores1. The pulse rates of men ar.pdf
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdfamazonedistributors
 
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdf
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdfno.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdf
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdfamazonedistributors
 
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdfNormal Distribution Problem. Porphyrin is a pigment in blood protopl.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdfamazonedistributors
 
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdf
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdfNoel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdf
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdfamazonedistributors
 
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdf
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdfNO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdf
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdfamazonedistributors
 

More from amazonedistributors (20)

namespace Habib_OLA4 { internal class Program { .pdf
namespace Habib_OLA4 {     internal class Program     {     .pdfnamespace Habib_OLA4 {     internal class Program     {     .pdf
namespace Habib_OLA4 { internal class Program { .pdf
 
Nancy is carrying out cost-benefit analysis for a project. If undert.pdf
Nancy is carrying out cost-benefit analysis for a project. If undert.pdfNancy is carrying out cost-benefit analysis for a project. If undert.pdf
Nancy is carrying out cost-benefit analysis for a project. If undert.pdf
 
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdf
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdfNecesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdf
Necesito ayuda con un cuestionario, s� que la regla de Chegg es publ.pdf
 
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdf
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdfn2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdf
n2=25n1=12x=115y=107ay=20oy=11 The confdence mbervai is (Fiound to two.pdf
 
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdf
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdfNarrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdf
Narrative 2 Cornick, Inc.Cornick, Inc. sells office products to b.pdf
 
Narcisco Publications established the following standard price and c.pdf
Narcisco Publications established the following standard price and c.pdfNarcisco Publications established the following standard price and c.pdf
Narcisco Publications established the following standard price and c.pdf
 
not sure what the equations isy^=60.5+2.50x.pdf
not sure what the equations isy^=60.5+2.50x.pdfnot sure what the equations isy^=60.5+2.50x.pdf
not sure what the equations isy^=60.5+2.50x.pdf
 
No plagiarism and at least 250 wordsBriefly describe the dif.pdf
No plagiarism and at least 250 wordsBriefly describe the dif.pdfNo plagiarism and at least 250 wordsBriefly describe the dif.pdf
No plagiarism and at least 250 wordsBriefly describe the dif.pdf
 
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdf
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdfNOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdf
NOTE CODE MUST BE IN ASSEMBLY LANGUAGE (10 points) 3. Write a progr.pdf
 
not taxable and any related input tax is therefore not deductible. T.pdf
not taxable and any related input tax is therefore not deductible. T.pdfnot taxable and any related input tax is therefore not deductible. T.pdf
not taxable and any related input tax is therefore not deductible. T.pdf
 
Normal Distribution Problem. Porphyrin is a pigment in blood proto.pdf
Normal Distribution Problem.   Porphyrin is a pigment in blood proto.pdfNormal Distribution Problem.   Porphyrin is a pigment in blood proto.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood proto.pdf
 
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdf
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdfNon-liquidating DistributionsCorporation is a calendar year taxpay.pdf
Non-liquidating DistributionsCorporation is a calendar year taxpay.pdf
 
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdf
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdfNonylphenol (NP) is commonly found in municipal wastewater and solid.pdf
Nonylphenol (NP) is commonly found in municipal wastewater and solid.pdf
 
North Korea Is a socialist state. The system is a single-party regim.pdf
North Korea Is a socialist state. The system is a single-party regim.pdfNorth Korea Is a socialist state. The system is a single-party regim.pdf
North Korea Is a socialist state. The system is a single-party regim.pdf
 
Name A. Refer to the table below to answer the questions that follo.pdf
Name A. Refer to the table below to answer the questions that follo.pdfName A. Refer to the table below to answer the questions that follo.pdf
Name A. Refer to the table below to answer the questions that follo.pdf
 
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdf
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdfNormal curve with non-integer z-scores1. The pulse rates of men ar.pdf
Normal curve with non-integer z-scores1. The pulse rates of men ar.pdf
 
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdf
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdfno.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdf
no.1.2 and 1.3 (15 Marks) 1.2 Network externality is an economics .pdf
 
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdfNormal Distribution Problem. Porphyrin is a pigment in blood protopl.pdf
Normal Distribution Problem. Porphyrin is a pigment in blood protopl.pdf
 
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdf
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdfNoel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdf
Noel Arrold podr�a haber terminado en trigo. O en el sal�n de clases.pdf
 
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdf
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdfNO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdf
NO SOLICITATIONSPLEASE PROVIDE FORMULASSpitzer Company .pdf
 

Recently uploaded

Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfDiploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfSUMIT TIWARI
 
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)Rabiya Husain
 
skeletal system details with joints and its types
skeletal system details with joints and its typesskeletal system details with joints and its types
skeletal system details with joints and its typesMinaxi patil. CATALLYST
 
DISCOURSE: TEXT AS CONNECTED DISCOURSE
DISCOURSE:   TEXT AS CONNECTED DISCOURSEDISCOURSE:   TEXT AS CONNECTED DISCOURSE
DISCOURSE: TEXT AS CONNECTED DISCOURSEMYDA ANGELICA SUAN
 
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...MohonDas
 
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAY
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAYSOCIAL JUSTICE LESSON ON CATCH UP FRIDAY
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAYGloriaRamos83
 
Nzinga Kika - The story of the queen
Nzinga Kika    -  The story of the queenNzinga Kika    -  The story of the queen
Nzinga Kika - The story of the queenDeanAmory1
 
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...EduSkills OECD
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024avesmalik2
 
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptx
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptxGrades 7 to 8 Anti- OSAEC and CSAEM session.pptx
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptxGladysValencia13
 
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...Nguyen Thanh Tu Collection
 
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdfAynouraHamidova
 
Overview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfOverview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfChristalin Nelson
 
Odontogenesis and its related anomiles.pptx
Odontogenesis and its related anomiles.pptxOdontogenesis and its related anomiles.pptx
Odontogenesis and its related anomiles.pptxMennat Allah Alkaram
 
Practical Research 1: Nature of Inquiry and Research.pptx
Practical Research 1: Nature of Inquiry and Research.pptxPractical Research 1: Nature of Inquiry and Research.pptx
Practical Research 1: Nature of Inquiry and Research.pptxKatherine Villaluna
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfDr.M.Geethavani
 
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdfAynouraHamidova
 
2.20.24 Asian Americans and the Myth of the Model Minority.pptx
2.20.24 Asian Americans and the Myth of the Model Minority.pptx2.20.24 Asian Americans and the Myth of the Model Minority.pptx
2.20.24 Asian Americans and the Myth of the Model Minority.pptxMaryPotorti1
 

Recently uploaded (20)

Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfDiploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
 
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)
HOW TO DEVELOP A RESEARCH PROPOSAL (FOR RESEARCH SCHOLARS)
 
skeletal system details with joints and its types
skeletal system details with joints and its typesskeletal system details with joints and its types
skeletal system details with joints and its types
 
DISCOURSE: TEXT AS CONNECTED DISCOURSE
DISCOURSE:   TEXT AS CONNECTED DISCOURSEDISCOURSE:   TEXT AS CONNECTED DISCOURSE
DISCOURSE: TEXT AS CONNECTED DISCOURSE
 
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...
BEZA or Bangladesh Economic Zone Authority recruitment exam question solution...
 
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAY
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAYSOCIAL JUSTICE LESSON ON CATCH UP FRIDAY
SOCIAL JUSTICE LESSON ON CATCH UP FRIDAY
 
Nzinga Kika - The story of the queen
Nzinga Kika    -  The story of the queenNzinga Kika    -  The story of the queen
Nzinga Kika - The story of the queen
 
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...
Andreas Schleicher - 20 Feb 2024 - How pop music, podcasts, and Tik Tok are i...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024
VPEC BROUCHER FOR ALL COURSES UPDATED FEB 2024
 
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptx
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptxGrades 7 to 8 Anti- OSAEC and CSAEM session.pptx
Grades 7 to 8 Anti- OSAEC and CSAEM session.pptx
 
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...
GIÁO ÁN TIẾNG ANH GLOBAL SUCCESS LỚP 11 (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) N...
 
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 10-2023-Aynura-Hamidova.pdf
 
Overview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfOverview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdf
 
ThinkTech 2024 Prelims- U25 BizTech Quiz by Pragya
ThinkTech 2024 Prelims- U25 BizTech Quiz by PragyaThinkTech 2024 Prelims- U25 BizTech Quiz by Pragya
ThinkTech 2024 Prelims- U25 BizTech Quiz by Pragya
 
Odontogenesis and its related anomiles.pptx
Odontogenesis and its related anomiles.pptxOdontogenesis and its related anomiles.pptx
Odontogenesis and its related anomiles.pptx
 
Practical Research 1: Nature of Inquiry and Research.pptx
Practical Research 1: Nature of Inquiry and Research.pptxPractical Research 1: Nature of Inquiry and Research.pptx
Practical Research 1: Nature of Inquiry and Research.pptx
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
 
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 1-2023-Aynura-Hamidova.pdf
 
2.20.24 Asian Americans and the Myth of the Model Minority.pptx
2.20.24 Asian Americans and the Myth of the Model Minority.pptx2.20.24 Asian Americans and the Myth of the Model Minority.pptx
2.20.24 Asian Americans and the Myth of the Model Minority.pptx
 

Need help debugging this assignmentimport java.util.;public c.pdf

  • 1. Need help debugging this assignment import java.util.*; public class DebugSeven2 { public static void main(String[] args) { String str; int x; int length; int start; int num; int lastSpace = -1; int sum = 0; String partStr; Scanner in = new Scanner(System.in); System.out.print("Enter a series of integers separated by spaces >> "); str = in.nextLine; length = str.length(); for(x = 0; x <= length; ++x) { if(str.charAt(x) == ' ') { partStr = str.substring(lastSpace + 1, y); num = Integer.parseInt(partStr); System.out.println(" " + num); sum += number; lastSpace = x; } } partStr = str.substring(lastSpace + 1, length); num = Integer.parseInt(partStr); System.out.println(" " + num); sum += num; System.out.println(" -------------------" +
  • 2. "nThe sum of the integers is " + sum); } }