SlideShare a Scribd company logo
What are the errors in this code:
import java.util.Scanner;
public class Main {
public static void Main(String[] args) {
Scanner Kb = new Scanner(System.in);
System.out.println("Max value:");
int max = Kb.nextLine();
for(int counter = 1; counter == max; counter++){
System.out.println(counter);
}
}
}

More Related Content

More from buntybagchandani890

What benefits do governments realize through international cooperation.pdf
What benefits do governments realize through international cooperation.pdfWhat benefits do governments realize through international cooperation.pdf
What benefits do governments realize through international cooperation.pdf
buntybagchandani890
 
What basic elements should Human Resource Planning contain- Why is str.pdf
What basic elements should Human Resource Planning contain- Why is str.pdfWhat basic elements should Human Resource Planning contain- Why is str.pdf
What basic elements should Human Resource Planning contain- Why is str.pdf
buntybagchandani890
 
What are three legal defenses to claims of employment discrimination t.pdf
What are three legal defenses to claims of employment discrimination t.pdfWhat are three legal defenses to claims of employment discrimination t.pdf
What are three legal defenses to claims of employment discrimination t.pdf
buntybagchandani890
 
What are the various types of exploitation that can occur over the int.pdf
What are the various types of exploitation that can occur over the int.pdfWhat are the various types of exploitation that can occur over the int.pdf
What are the various types of exploitation that can occur over the int.pdf
buntybagchandani890
 
What are the Weaknesses of your new venture- Example- Identify and ex.pdf
What are the Weaknesses of your new venture-  Example- Identify and ex.pdfWhat are the Weaknesses of your new venture-  Example- Identify and ex.pdf
What are the Weaknesses of your new venture- Example- Identify and ex.pdf
buntybagchandani890
 
What are the two primary types of interests in real estate property- W.pdf
What are the two primary types of interests in real estate property- W.pdfWhat are the two primary types of interests in real estate property- W.pdf
What are the two primary types of interests in real estate property- W.pdf
buntybagchandani890
 
What are the three basic components of the Epidemiologic Triad of Dise.pdf
What are the three basic components of the Epidemiologic Triad of Dise.pdfWhat are the three basic components of the Epidemiologic Triad of Dise.pdf
What are the three basic components of the Epidemiologic Triad of Dise.pdf
buntybagchandani890
 
What are the THREE products of incomplete oxidation of glucose in glyc.pdf
What are the THREE products of incomplete oxidation of glucose in glyc.pdfWhat are the THREE products of incomplete oxidation of glucose in glyc.pdf
What are the THREE products of incomplete oxidation of glucose in glyc.pdf
buntybagchandani890
 
What are the three main points in the central idea- What three questio.pdf
What are the three main points in the central idea- What three questio.pdfWhat are the three main points in the central idea- What three questio.pdf
What are the three main points in the central idea- What three questio.pdf
buntybagchandani890
 
What are the main characteristics of primary care- The main characteri.pdf
What are the main characteristics of primary care- The main characteri.pdfWhat are the main characteristics of primary care- The main characteri.pdf
What are the main characteristics of primary care- The main characteri.pdf
buntybagchandani890
 
what are the possible solution to this IDPS limitation - Compensating.pdf
what are the possible solution to this IDPS limitation - Compensating.pdfwhat are the possible solution to this IDPS limitation - Compensating.pdf
what are the possible solution to this IDPS limitation - Compensating.pdf
buntybagchandani890
 
What are the primary regulator units that control gene expression for.pdf
What are the primary regulator units that control gene expression for.pdfWhat are the primary regulator units that control gene expression for.pdf
What are the primary regulator units that control gene expression for.pdf
buntybagchandani890
 
What are the major agricultural hearths of the world- What is the rela.pdf
What are the major agricultural hearths of the world- What is the rela.pdfWhat are the major agricultural hearths of the world- What is the rela.pdf
What are the major agricultural hearths of the world- What is the rela.pdf
buntybagchandani890
 
What are the frequencies of the two coupling gametes and the two repul.pdf
What are the frequencies of the two coupling gametes and the two repul.pdfWhat are the frequencies of the two coupling gametes and the two repul.pdf
What are the frequencies of the two coupling gametes and the two repul.pdf
buntybagchandani890
 
What are the legal and ethical considerations surrounding the HIPAA Pr.pdf
What are the legal and ethical considerations surrounding the HIPAA Pr.pdfWhat are the legal and ethical considerations surrounding the HIPAA Pr.pdf
What are the legal and ethical considerations surrounding the HIPAA Pr.pdf
buntybagchandani890
 
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdfWhat are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
buntybagchandani890
 
What are the issues that could arise when a research protocol is appro.pdf
What are the issues that could arise when a research protocol is appro.pdfWhat are the issues that could arise when a research protocol is appro.pdf
What are the issues that could arise when a research protocol is appro.pdf
buntybagchandani890
 
What are the factors considered in the classification of igneous rocks.pdf
What are the factors considered in the classification of igneous rocks.pdfWhat are the factors considered in the classification of igneous rocks.pdf
What are the factors considered in the classification of igneous rocks.pdf
buntybagchandani890
 
What are the different types of vitalism- How do the concept of the f.pdf
What are the different types of vitalism-  How do the concept of the f.pdfWhat are the different types of vitalism-  How do the concept of the f.pdf
What are the different types of vitalism- How do the concept of the f.pdf
buntybagchandani890
 
What are the common features of computerized accounting packages beyon.pdf
What are the common features of computerized accounting packages beyon.pdfWhat are the common features of computerized accounting packages beyon.pdf
What are the common features of computerized accounting packages beyon.pdf
buntybagchandani890
 

More from buntybagchandani890 (20)

What benefits do governments realize through international cooperation.pdf
What benefits do governments realize through international cooperation.pdfWhat benefits do governments realize through international cooperation.pdf
What benefits do governments realize through international cooperation.pdf
 
What basic elements should Human Resource Planning contain- Why is str.pdf
What basic elements should Human Resource Planning contain- Why is str.pdfWhat basic elements should Human Resource Planning contain- Why is str.pdf
What basic elements should Human Resource Planning contain- Why is str.pdf
 
What are three legal defenses to claims of employment discrimination t.pdf
What are three legal defenses to claims of employment discrimination t.pdfWhat are three legal defenses to claims of employment discrimination t.pdf
What are three legal defenses to claims of employment discrimination t.pdf
 
What are the various types of exploitation that can occur over the int.pdf
What are the various types of exploitation that can occur over the int.pdfWhat are the various types of exploitation that can occur over the int.pdf
What are the various types of exploitation that can occur over the int.pdf
 
What are the Weaknesses of your new venture- Example- Identify and ex.pdf
What are the Weaknesses of your new venture-  Example- Identify and ex.pdfWhat are the Weaknesses of your new venture-  Example- Identify and ex.pdf
What are the Weaknesses of your new venture- Example- Identify and ex.pdf
 
What are the two primary types of interests in real estate property- W.pdf
What are the two primary types of interests in real estate property- W.pdfWhat are the two primary types of interests in real estate property- W.pdf
What are the two primary types of interests in real estate property- W.pdf
 
What are the three basic components of the Epidemiologic Triad of Dise.pdf
What are the three basic components of the Epidemiologic Triad of Dise.pdfWhat are the three basic components of the Epidemiologic Triad of Dise.pdf
What are the three basic components of the Epidemiologic Triad of Dise.pdf
 
What are the THREE products of incomplete oxidation of glucose in glyc.pdf
What are the THREE products of incomplete oxidation of glucose in glyc.pdfWhat are the THREE products of incomplete oxidation of glucose in glyc.pdf
What are the THREE products of incomplete oxidation of glucose in glyc.pdf
 
What are the three main points in the central idea- What three questio.pdf
What are the three main points in the central idea- What three questio.pdfWhat are the three main points in the central idea- What three questio.pdf
What are the three main points in the central idea- What three questio.pdf
 
What are the main characteristics of primary care- The main characteri.pdf
What are the main characteristics of primary care- The main characteri.pdfWhat are the main characteristics of primary care- The main characteri.pdf
What are the main characteristics of primary care- The main characteri.pdf
 
what are the possible solution to this IDPS limitation - Compensating.pdf
what are the possible solution to this IDPS limitation - Compensating.pdfwhat are the possible solution to this IDPS limitation - Compensating.pdf
what are the possible solution to this IDPS limitation - Compensating.pdf
 
What are the primary regulator units that control gene expression for.pdf
What are the primary regulator units that control gene expression for.pdfWhat are the primary regulator units that control gene expression for.pdf
What are the primary regulator units that control gene expression for.pdf
 
What are the major agricultural hearths of the world- What is the rela.pdf
What are the major agricultural hearths of the world- What is the rela.pdfWhat are the major agricultural hearths of the world- What is the rela.pdf
What are the major agricultural hearths of the world- What is the rela.pdf
 
What are the frequencies of the two coupling gametes and the two repul.pdf
What are the frequencies of the two coupling gametes and the two repul.pdfWhat are the frequencies of the two coupling gametes and the two repul.pdf
What are the frequencies of the two coupling gametes and the two repul.pdf
 
What are the legal and ethical considerations surrounding the HIPAA Pr.pdf
What are the legal and ethical considerations surrounding the HIPAA Pr.pdfWhat are the legal and ethical considerations surrounding the HIPAA Pr.pdf
What are the legal and ethical considerations surrounding the HIPAA Pr.pdf
 
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdfWhat are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
What are the four quadrants in the Ansoff Matrix- ( 2 point) Select on.pdf
 
What are the issues that could arise when a research protocol is appro.pdf
What are the issues that could arise when a research protocol is appro.pdfWhat are the issues that could arise when a research protocol is appro.pdf
What are the issues that could arise when a research protocol is appro.pdf
 
What are the factors considered in the classification of igneous rocks.pdf
What are the factors considered in the classification of igneous rocks.pdfWhat are the factors considered in the classification of igneous rocks.pdf
What are the factors considered in the classification of igneous rocks.pdf
 
What are the different types of vitalism- How do the concept of the f.pdf
What are the different types of vitalism-  How do the concept of the f.pdfWhat are the different types of vitalism-  How do the concept of the f.pdf
What are the different types of vitalism- How do the concept of the f.pdf
 
What are the common features of computerized accounting packages beyon.pdf
What are the common features of computerized accounting packages beyon.pdfWhat are the common features of computerized accounting packages beyon.pdf
What are the common features of computerized accounting packages beyon.pdf
 

Recently uploaded

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 

Recently uploaded (20)

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 

What are the errors in this code- import java-util-Scanner- public.pdf

  • 1. What are the errors in this code: import java.util.Scanner; public class Main { public static void Main(String[] args) { Scanner Kb = new Scanner(System.in); System.out.println("Max value:"); int max = Kb.nextLine(); for(int counter = 1; counter == max; counter++){ System.out.println(counter); } } }