SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Instructions // Makes String comparisons The files provided in the code editor to the right
contain syntax and/or logic errors. In each case, determine and fix 4{{ the problem, remove all
syntax and coding errors, and run 5 public static void main(String[] args) the program to ensure
it works properly. Scanner kb= new Scanner(System.in); An example of the program is shown
below: String name1, name2, name3; System.out.println("Enter three names.");
System.out.println("They can be the same or different."); System.out.print("First name >> ");
name1 =kb nextLine; System.out.print("Second name >> "); name2 =kb nextLine;
System.out.print("Third name >> "); name3 = kb.nextLine; compareNames (name1, name2);
compareNames (name1, name3); compareNames (name2, name3); } public static void
comparNames (String n1,n2 ) { System.out.print (n1+" and "+n2); if (n1.equals (n2)
System.out.println(" are the same"); else System.out.println(" are different"); }

Weitere ähnliche Inhalte

Ähnlich wie Instructions Makes String comparisons The files provided in the co.pdf

data.txtInternational Business Management l2 Cons.docx
data.txtInternational Business Management       l2        Cons.docxdata.txtInternational Business Management       l2        Cons.docx
data.txtInternational Business Management l2 Cons.docxtheodorelove43763
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docxwilcockiris
 
Description 1) Create a Lab2 folder for this project2.docx
Description       1)  Create a Lab2 folder for this project2.docxDescription       1)  Create a Lab2 folder for this project2.docx
Description 1) Create a Lab2 folder for this project2.docxtheodorelove43763
 
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/O
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/OCore Java Programming Language (JSE) : Chapter XI - Console I/O and File I/O
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/OWebStackAcademy
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfinfo706022
 
Unitii classnotes
Unitii classnotesUnitii classnotes
Unitii classnotesSowri Rajan
 
(2) c sharp introduction_basics_part_i
(2) c sharp introduction_basics_part_i(2) c sharp introduction_basics_part_i
(2) c sharp introduction_basics_part_iNico Ludwig
 
R Programming: Importing Data In R
R Programming: Importing Data In RR Programming: Importing Data In R
R Programming: Importing Data In RRsquared Academy
 
cs348-06-lab3.doc
cs348-06-lab3.doccs348-06-lab3.doc
cs348-06-lab3.docbutest
 
cs348-06-lab3.doc
cs348-06-lab3.doccs348-06-lab3.doc
cs348-06-lab3.docbutest
 
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxCOMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxmonicafrancis71118
 
Lecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administrationLecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administrationMohammed Farrag
 
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxCOMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxcargillfilberto
 

Ähnlich wie Instructions Makes String comparisons The files provided in the co.pdf (18)

data.txtInternational Business Management l2 Cons.docx
data.txtInternational Business Management       l2        Cons.docxdata.txtInternational Business Management       l2        Cons.docx
data.txtInternational Business Management l2 Cons.docx
 
Structures-2
Structures-2Structures-2
Structures-2
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
 
Description 1) Create a Lab2 folder for this project2.docx
Description       1)  Create a Lab2 folder for this project2.docxDescription       1)  Create a Lab2 folder for this project2.docx
Description 1) Create a Lab2 folder for this project2.docx
 
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/O
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/OCore Java Programming Language (JSE) : Chapter XI - Console I/O and File I/O
Core Java Programming Language (JSE) : Chapter XI - Console I/O and File I/O
 
Java 3 Computer Science.pptx
Java 3 Computer Science.pptxJava 3 Computer Science.pptx
Java 3 Computer Science.pptx
 
IO and threads Java
IO and threads JavaIO and threads Java
IO and threads Java
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
 
Java execise
Java execiseJava execise
Java execise
 
Unitii classnotes
Unitii classnotesUnitii classnotes
Unitii classnotes
 
SWE-6 TESTING.pptx
SWE-6 TESTING.pptxSWE-6 TESTING.pptx
SWE-6 TESTING.pptx
 
(2) c sharp introduction_basics_part_i
(2) c sharp introduction_basics_part_i(2) c sharp introduction_basics_part_i
(2) c sharp introduction_basics_part_i
 
R Programming: Importing Data In R
R Programming: Importing Data In RR Programming: Importing Data In R
R Programming: Importing Data In R
 
cs348-06-lab3.doc
cs348-06-lab3.doccs348-06-lab3.doc
cs348-06-lab3.doc
 
cs348-06-lab3.doc
cs348-06-lab3.doccs348-06-lab3.doc
cs348-06-lab3.doc
 
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxCOMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
 
Lecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administrationLecture 3 Perl & FreeBSD administration
Lecture 3 Perl & FreeBSD administration
 
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docxCOMM 166 Final Research Proposal GuidelinesThe proposal should.docx
COMM 166 Final Research Proposal GuidelinesThe proposal should.docx
 

Mehr von ameancal

Introduction You will use your datasets for your project in your Unit.pdf
 Introduction You will use your datasets for your project in your Unit.pdf Introduction You will use your datasets for your project in your Unit.pdf
Introduction You will use your datasets for your project in your Unit.pdfameancal
 
Inventory Costing Methods Belden started the year with 4,500 units of.pdf
 Inventory Costing Methods Belden started the year with 4,500 units of.pdf Inventory Costing Methods Belden started the year with 4,500 units of.pdf
Inventory Costing Methods Belden started the year with 4,500 units of.pdfameancal
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdfameancal
 
INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf
 INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf
INTRODUCTION One of the most useful and powerful plots in astrophysic.pdfameancal
 
Introduction and early history (Lectures 01 - 02) - what is animal be.pdf
 Introduction and early history (Lectures 01 - 02) - what is animal be.pdf Introduction and early history (Lectures 01 - 02) - what is animal be.pdf
Introduction and early history (Lectures 01 - 02) - what is animal be.pdfameancal
 
Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf
 Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf
Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdfameancal
 
Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
 Internet Browsers Recently, the top web browser had 51.74 of the m.pdf Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
Internet Browsers Recently, the top web browser had 51.74 of the m.pdfameancal
 
International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf
 International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf
International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdfameancal
 
Interest rates or discount rafes. Fill in the interest rates for the .pdf
 Interest rates or discount rafes. Fill in the interest rates for the .pdf Interest rates or discount rafes. Fill in the interest rates for the .pdf
Interest rates or discount rafes. Fill in the interest rates for the .pdfameancal
 
Internal failure costs tend to be much lower for service organization.pdf
 Internal failure costs tend to be much lower for service organization.pdf Internal failure costs tend to be much lower for service organization.pdf
Internal failure costs tend to be much lower for service organization.pdfameancal
 
Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf
 Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf
Instructions Answer ALL questions in this section. CASE STUDY Peter .pdfameancal
 
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
 Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdfameancal
 
Instructions Complete the following excrcises. No noed to show your .pdf
 Instructions Complete the following excrcises. No noed to show your .pdf Instructions Complete the following excrcises. No noed to show your .pdf
Instructions Complete the following excrcises. No noed to show your .pdfameancal
 
Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf
 Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf
Instructions Answer ALL questions from this section CASE STUDY Cynt.pdfameancal
 
Instructions - In Course 3 - Project Planning Putting it all togethe.pdf
 Instructions - In Course 3 - Project Planning Putting it all togethe.pdf Instructions - In Course 3 - Project Planning Putting it all togethe.pdf
Instructions - In Course 3 - Project Planning Putting it all togethe.pdfameancal
 
Instructions shares should receive under each of the following cond.pdf
 Instructions shares should receive under each of the following cond.pdf Instructions shares should receive under each of the following cond.pdf
Instructions shares should receive under each of the following cond.pdfameancal
 
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
 Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdfameancal
 
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
 inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdfameancal
 
Instructions C=200+0.75YI=150.pdf
 Instructions C=200+0.75YI=150.pdf Instructions C=200+0.75YI=150.pdf
Instructions C=200+0.75YI=150.pdfameancal
 
Instructions Submit an electronic copy of the assignment to the Drop.pdf
 Instructions Submit an electronic copy of the assignment to the Drop.pdf Instructions Submit an electronic copy of the assignment to the Drop.pdf
Instructions Submit an electronic copy of the assignment to the Drop.pdfameancal
 

Mehr von ameancal (20)

Introduction You will use your datasets for your project in your Unit.pdf
 Introduction You will use your datasets for your project in your Unit.pdf Introduction You will use your datasets for your project in your Unit.pdf
Introduction You will use your datasets for your project in your Unit.pdf
 
Inventory Costing Methods Belden started the year with 4,500 units of.pdf
 Inventory Costing Methods Belden started the year with 4,500 units of.pdf Inventory Costing Methods Belden started the year with 4,500 units of.pdf
Inventory Costing Methods Belden started the year with 4,500 units of.pdf
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdf
 
INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf
 INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf
INTRODUCTION One of the most useful and powerful plots in astrophysic.pdf
 
Introduction and early history (Lectures 01 - 02) - what is animal be.pdf
 Introduction and early history (Lectures 01 - 02) - what is animal be.pdf Introduction and early history (Lectures 01 - 02) - what is animal be.pdf
Introduction and early history (Lectures 01 - 02) - what is animal be.pdf
 
Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf
 Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf
Intipententary Integamitaty Sydem Review inl iodentind amicher flento.pdf
 
Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
 Internet Browsers Recently, the top web browser had 51.74 of the m.pdf Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
Internet Browsers Recently, the top web browser had 51.74 of the m.pdf
 
International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf
 International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf
International Trade Closing Cases and Discussions 1. Tadoos Sales to.pdf
 
Interest rates or discount rafes. Fill in the interest rates for the .pdf
 Interest rates or discount rafes. Fill in the interest rates for the .pdf Interest rates or discount rafes. Fill in the interest rates for the .pdf
Interest rates or discount rafes. Fill in the interest rates for the .pdf
 
Internal failure costs tend to be much lower for service organization.pdf
 Internal failure costs tend to be much lower for service organization.pdf Internal failure costs tend to be much lower for service organization.pdf
Internal failure costs tend to be much lower for service organization.pdf
 
Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf
 Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf
Instructions Answer ALL questions in this section. CASE STUDY Peter .pdf
 
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
 Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
Instructions (a) Prepare a cost of goods manufactured schedule for Ju.pdf
 
Instructions Complete the following excrcises. No noed to show your .pdf
 Instructions Complete the following excrcises. No noed to show your .pdf Instructions Complete the following excrcises. No noed to show your .pdf
Instructions Complete the following excrcises. No noed to show your .pdf
 
Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf
 Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf
Instructions Answer ALL questions from this section CASE STUDY Cynt.pdf
 
Instructions - In Course 3 - Project Planning Putting it all togethe.pdf
 Instructions - In Course 3 - Project Planning Putting it all togethe.pdf Instructions - In Course 3 - Project Planning Putting it all togethe.pdf
Instructions - In Course 3 - Project Planning Putting it all togethe.pdf
 
Instructions shares should receive under each of the following cond.pdf
 Instructions shares should receive under each of the following cond.pdf Instructions shares should receive under each of the following cond.pdf
Instructions shares should receive under each of the following cond.pdf
 
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
 Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
Inseructons Propane the Mery 11th� journat entry for Cody Compary.pdf
 
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
 inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
inite anedt the keneth of time Alutrasweet cojoyicd its firt inover a.pdf
 
Instructions C=200+0.75YI=150.pdf
 Instructions C=200+0.75YI=150.pdf Instructions C=200+0.75YI=150.pdf
Instructions C=200+0.75YI=150.pdf
 
Instructions Submit an electronic copy of the assignment to the Drop.pdf
 Instructions Submit an electronic copy of the assignment to the Drop.pdf Instructions Submit an electronic copy of the assignment to the Drop.pdf
Instructions Submit an electronic copy of the assignment to the Drop.pdf
 

Kürzlich hochgeladen

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Kürzlich hochgeladen (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

Instructions Makes String comparisons The files provided in the co.pdf

  • 1. Instructions // Makes String comparisons The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix 4{{ the problem, remove all syntax and coding errors, and run 5 public static void main(String[] args) the program to ensure it works properly. Scanner kb= new Scanner(System.in); An example of the program is shown below: String name1, name2, name3; System.out.println("Enter three names."); System.out.println("They can be the same or different."); System.out.print("First name >> "); name1 =kb nextLine; System.out.print("Second name >> "); name2 =kb nextLine; System.out.print("Third name >> "); name3 = kb.nextLine; compareNames (name1, name2); compareNames (name1, name3); compareNames (name2, name3); } public static void comparNames (String n1,n2 ) { System.out.print (n1+" and "+n2); if (n1.equals (n2) System.out.println(" are the same"); else System.out.println(" are different"); }