SlideShare a Scribd company logo
Write three overloaded methods, at a minimum each method must take a String and an int
argument. Each method should do the following:
Returns the code 999 if the string argument contains the word gun.
Prints the number of characters in the string argument.
Prints the starting index of the first occurrence of the pattern ing found in the string argument.
Prints the string argument in all lower case.
Prints a message indicating if the integer passed in is even or odd.
Prints the character at index x of the String argument , where x is the int argument passed into
the method. If the int argument is larger than the string itself, print a message indicating this
case.

More Related Content

More from AMIOPTICPLUS

xx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdfxx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdf
AMIOPTICPLUS
 
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdfXavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
AMIOPTICPLUS
 
x is 3.pdf
x is 3.pdfx is 3.pdf
x is 3.pdf
AMIOPTICPLUS
 
X has the following probability distribution P(X) Compute the expect.pdf
X has the following probability distribution P(X)  Compute the expect.pdfX has the following probability distribution P(X)  Compute the expect.pdf
X has the following probability distribution P(X) Compute the expect.pdf
AMIOPTICPLUS
 
Written descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdfWritten descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdf
AMIOPTICPLUS
 
You get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdfYou get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdf
AMIOPTICPLUS
 
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdfwriting a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
AMIOPTICPLUS
 
You are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdfYou are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdf
AMIOPTICPLUS
 
You are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdfYou are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdf
AMIOPTICPLUS
 
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdfyou are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
AMIOPTICPLUS
 
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdfYou are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
AMIOPTICPLUS
 
You are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdfYou are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdf
AMIOPTICPLUS
 
You are interested in the gender proportions in different countries..pdf
You are interested in the gender proportions in different countries..pdfYou are interested in the gender proportions in different countries..pdf
You are interested in the gender proportions in different countries..pdf
AMIOPTICPLUS
 
Write TRUEFALSE after each statementConsumption is the process b.pdf
Write TRUEFALSE after each statementConsumption is the process b.pdfWrite TRUEFALSE after each statementConsumption is the process b.pdf
Write TRUEFALSE after each statementConsumption is the process b.pdf
AMIOPTICPLUS
 
Yield to maturity The bond shown in the following table pays interes.pdf
Yield to maturity The bond shown in the following table pays interes.pdfYield to maturity The bond shown in the following table pays interes.pdf
Yield to maturity The bond shown in the following table pays interes.pdf
AMIOPTICPLUS
 
You are a paralegal working for a small employment law firm in Winch.pdf
You are a paralegal working for a small employment law firm in Winch.pdfYou are a paralegal working for a small employment law firm in Winch.pdf
You are a paralegal working for a small employment law firm in Winch.pdf
AMIOPTICPLUS
 

More from AMIOPTICPLUS (16)

xx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdfxx warlance stacdard dewotson.pdf
xx warlance stacdard dewotson.pdf
 
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdfXavier and Yolanda have original investments of $50,700 and $102,300.pdf
Xavier and Yolanda have original investments of $50,700 and $102,300.pdf
 
x is 3.pdf
x is 3.pdfx is 3.pdf
x is 3.pdf
 
X has the following probability distribution P(X) Compute the expect.pdf
X has the following probability distribution P(X)  Compute the expect.pdfX has the following probability distribution P(X)  Compute the expect.pdf
X has the following probability distribution P(X) Compute the expect.pdf
 
Written descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdfWritten descriptions of how to input data and how to invoke the func.pdf
Written descriptions of how to input data and how to invoke the func.pdf
 
You get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdfYou get a bunch of photos with certain information about them. With .pdf
You get a bunch of photos with certain information about them. With .pdf
 
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdfwriting a paper about Migraine using these 3 articles Migraine A Hi.pdf
writing a paper about Migraine using these 3 articles Migraine A Hi.pdf
 
You are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdfYou are working as a network engineer for an IT company called YorkI.pdf
You are working as a network engineer for an IT company called YorkI.pdf
 
You are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdfYou are the PM on a software upgrade project. You find out from a se.pdf
You are the PM on a software upgrade project. You find out from a se.pdf
 
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdfyou are opening Tim Hortons in Nigeria.complete the sections of the .pdf
you are opening Tim Hortons in Nigeria.complete the sections of the .pdf
 
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdfYou are meeting your client, Henry, who is 70 years old. Henry took .pdf
You are meeting your client, Henry, who is 70 years old. Henry took .pdf
 
You are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdfYou are Maria Herrera and have been recently promoted to the positio.pdf
You are Maria Herrera and have been recently promoted to the positio.pdf
 
You are interested in the gender proportions in different countries..pdf
You are interested in the gender proportions in different countries..pdfYou are interested in the gender proportions in different countries..pdf
You are interested in the gender proportions in different countries..pdf
 
Write TRUEFALSE after each statementConsumption is the process b.pdf
Write TRUEFALSE after each statementConsumption is the process b.pdfWrite TRUEFALSE after each statementConsumption is the process b.pdf
Write TRUEFALSE after each statementConsumption is the process b.pdf
 
Yield to maturity The bond shown in the following table pays interes.pdf
Yield to maturity The bond shown in the following table pays interes.pdfYield to maturity The bond shown in the following table pays interes.pdf
Yield to maturity The bond shown in the following table pays interes.pdf
 
You are a paralegal working for a small employment law firm in Winch.pdf
You are a paralegal working for a small employment law firm in Winch.pdfYou are a paralegal working for a small employment law firm in Winch.pdf
You are a paralegal working for a small employment law firm in Winch.pdf
 

Recently uploaded

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
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
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
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
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
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
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 

Recently uploaded (20)

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
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
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
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
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 

Write three overloaded methods, at a minimum each method must take a.pdf

  • 1. Write three overloaded methods, at a minimum each method must take a String and an int argument. Each method should do the following: Returns the code 999 if the string argument contains the word gun. Prints the number of characters in the string argument. Prints the starting index of the first occurrence of the pattern ing found in the string argument. Prints the string argument in all lower case. Prints a message indicating if the integer passed in is even or odd. Prints the character at index x of the String argument , where x is the int argument passed into the method. If the int argument is larger than the string itself, print a message indicating this case.