SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
In Java, Create a function, getSpecial. The function returns a string and takes no parameters. The
function should instantiate a scanner, and get a user input. The user input will be a sentence that
may contain words that start with a special letter. If a word starts with the letter 'z', we want the
function to return the string: "I think z_____ is cool!", where z_____ would be the word that
starts with z. We want to get the first word that starts with z, and ignore any other words. If there
are no words that start with z, return "This is boring"

Mais conteúdo relacionado

Mais de aggarwalenterprisesf

irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdf
irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdfirket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdf
irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdfaggarwalenterprisesf
 
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdf
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdfInvestigue Halcones de cola roja usando la enciclopedia en l�nea All.pdf
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdfaggarwalenterprisesf
 
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdf
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdfIntroducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdf
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdfaggarwalenterprisesf
 
Introducci�n El vocabulario, como una de las �reas de conocimient.pdf
Introducci�n El vocabulario, como una de las �reas de conocimient.pdfIntroducci�n El vocabulario, como una de las �reas de conocimient.pdf
Introducci�n El vocabulario, como una de las �reas de conocimient.pdfaggarwalenterprisesf
 
Internet providers can be considered a monopoly where consumers have.pdf
Internet providers can be considered a monopoly where consumers have.pdfInternet providers can be considered a monopoly where consumers have.pdf
Internet providers can be considered a monopoly where consumers have.pdfaggarwalenterprisesf
 
Instructions The paper should be in APA format with 3-4 pages doubl.pdf
Instructions The paper should be in APA format with 3-4 pages doubl.pdfInstructions The paper should be in APA format with 3-4 pages doubl.pdf
Instructions The paper should be in APA format with 3-4 pages doubl.pdfaggarwalenterprisesf
 
InstructionsAssume that your class group has been selected and hir.pdf
InstructionsAssume that your class group has been selected and hir.pdfInstructionsAssume that your class group has been selected and hir.pdf
InstructionsAssume that your class group has been selected and hir.pdfaggarwalenterprisesf
 
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdf
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdfInstrucciones Imagine que forma parte de un equipo de investigaci�.pdf
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdfaggarwalenterprisesf
 
In what way are the emerging trends of working couples, lower birthr.pdf
In what way are the emerging trends of working couples, lower birthr.pdfIn what way are the emerging trends of working couples, lower birthr.pdf
In what way are the emerging trends of working couples, lower birthr.pdfaggarwalenterprisesf
 
In this assignment, you examine the Supreme Court case of Terry v. O.pdf
In this assignment, you examine the Supreme Court case of Terry v. O.pdfIn this assignment, you examine the Supreme Court case of Terry v. O.pdf
In this assignment, you examine the Supreme Court case of Terry v. O.pdfaggarwalenterprisesf
 
In the SS partnership (to which Fozzie seeks admittance), the capita.pdf
In the SS partnership (to which Fozzie seeks admittance), the capita.pdfIn the SS partnership (to which Fozzie seeks admittance), the capita.pdf
In the SS partnership (to which Fozzie seeks admittance), the capita.pdfaggarwalenterprisesf
 
IN PYTHONCreate your own list of random integers, do not use r.pdf
IN PYTHONCreate your own list of random integers, do not use r.pdfIN PYTHONCreate your own list of random integers, do not use r.pdf
IN PYTHONCreate your own list of random integers, do not use r.pdfaggarwalenterprisesf
 
In relation to your focal organization� the company is Apple.Apply.pdf
In relation to your focal organization� the company is Apple.Apply.pdfIn relation to your focal organization� the company is Apple.Apply.pdf
In relation to your focal organization� the company is Apple.Apply.pdfaggarwalenterprisesf
 
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdf
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdfIn 2022, Jasmine and Thomas, a married couple, had taxable income of.pdf
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdfaggarwalenterprisesf
 
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdf
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdfIn 2020, Caterpillar Incorporated had about 540 million shares outst.pdf
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdfaggarwalenterprisesf
 
In essay format and integrating evidence from the course readings, d.pdf
In essay format and integrating evidence from the course readings, d.pdfIn essay format and integrating evidence from the course readings, d.pdf
In essay format and integrating evidence from the course readings, d.pdfaggarwalenterprisesf
 
In his book The Age of Turbluence, Alan Greenspan explained the con.pdf
In his book The Age of Turbluence, Alan Greenspan explained the con.pdfIn his book The Age of Turbluence, Alan Greenspan explained the con.pdf
In his book The Age of Turbluence, Alan Greenspan explained the con.pdfaggarwalenterprisesf
 
In C#, visual studio, I want no more text boxes added, I have button.pdf
In C#, visual studio, I want no more text boxes added, I have button.pdfIn C#, visual studio, I want no more text boxes added, I have button.pdf
In C#, visual studio, I want no more text boxes added, I have button.pdfaggarwalenterprisesf
 
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdf
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdfIn 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdf
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdfaggarwalenterprisesf
 
In Bangladesh, where labor is relatively abundant, bricks are produ.pdf
In Bangladesh, where labor is relatively abundant, bricks are produ.pdfIn Bangladesh, where labor is relatively abundant, bricks are produ.pdf
In Bangladesh, where labor is relatively abundant, bricks are produ.pdfaggarwalenterprisesf
 

Mais de aggarwalenterprisesf (20)

irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdf
irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdfirket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdf
irket bakan, �ou posta yoluyla ve dierleri irketin intraneti araclyl.pdf
 
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdf
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdfInvestigue Halcones de cola roja usando la enciclopedia en l�nea All.pdf
Investigue Halcones de cola roja usando la enciclopedia en l�nea All.pdf
 
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdf
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdfIntroducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdf
Introducci�nCochinillas En el ejercicio de hoy, utilizaremos el.pdf
 
Introducci�n El vocabulario, como una de las �reas de conocimient.pdf
Introducci�n El vocabulario, como una de las �reas de conocimient.pdfIntroducci�n El vocabulario, como una de las �reas de conocimient.pdf
Introducci�n El vocabulario, como una de las �reas de conocimient.pdf
 
Internet providers can be considered a monopoly where consumers have.pdf
Internet providers can be considered a monopoly where consumers have.pdfInternet providers can be considered a monopoly where consumers have.pdf
Internet providers can be considered a monopoly where consumers have.pdf
 
Instructions The paper should be in APA format with 3-4 pages doubl.pdf
Instructions The paper should be in APA format with 3-4 pages doubl.pdfInstructions The paper should be in APA format with 3-4 pages doubl.pdf
Instructions The paper should be in APA format with 3-4 pages doubl.pdf
 
InstructionsAssume that your class group has been selected and hir.pdf
InstructionsAssume that your class group has been selected and hir.pdfInstructionsAssume that your class group has been selected and hir.pdf
InstructionsAssume that your class group has been selected and hir.pdf
 
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdf
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdfInstrucciones Imagine que forma parte de un equipo de investigaci�.pdf
Instrucciones Imagine que forma parte de un equipo de investigaci�.pdf
 
In what way are the emerging trends of working couples, lower birthr.pdf
In what way are the emerging trends of working couples, lower birthr.pdfIn what way are the emerging trends of working couples, lower birthr.pdf
In what way are the emerging trends of working couples, lower birthr.pdf
 
In this assignment, you examine the Supreme Court case of Terry v. O.pdf
In this assignment, you examine the Supreme Court case of Terry v. O.pdfIn this assignment, you examine the Supreme Court case of Terry v. O.pdf
In this assignment, you examine the Supreme Court case of Terry v. O.pdf
 
In the SS partnership (to which Fozzie seeks admittance), the capita.pdf
In the SS partnership (to which Fozzie seeks admittance), the capita.pdfIn the SS partnership (to which Fozzie seeks admittance), the capita.pdf
In the SS partnership (to which Fozzie seeks admittance), the capita.pdf
 
IN PYTHONCreate your own list of random integers, do not use r.pdf
IN PYTHONCreate your own list of random integers, do not use r.pdfIN PYTHONCreate your own list of random integers, do not use r.pdf
IN PYTHONCreate your own list of random integers, do not use r.pdf
 
In relation to your focal organization� the company is Apple.Apply.pdf
In relation to your focal organization� the company is Apple.Apply.pdfIn relation to your focal organization� the company is Apple.Apply.pdf
In relation to your focal organization� the company is Apple.Apply.pdf
 
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdf
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdfIn 2022, Jasmine and Thomas, a married couple, had taxable income of.pdf
In 2022, Jasmine and Thomas, a married couple, had taxable income of.pdf
 
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdf
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdfIn 2020, Caterpillar Incorporated had about 540 million shares outst.pdf
In 2020, Caterpillar Incorporated had about 540 million shares outst.pdf
 
In essay format and integrating evidence from the course readings, d.pdf
In essay format and integrating evidence from the course readings, d.pdfIn essay format and integrating evidence from the course readings, d.pdf
In essay format and integrating evidence from the course readings, d.pdf
 
In his book The Age of Turbluence, Alan Greenspan explained the con.pdf
In his book The Age of Turbluence, Alan Greenspan explained the con.pdfIn his book The Age of Turbluence, Alan Greenspan explained the con.pdf
In his book The Age of Turbluence, Alan Greenspan explained the con.pdf
 
In C#, visual studio, I want no more text boxes added, I have button.pdf
In C#, visual studio, I want no more text boxes added, I have button.pdfIn C#, visual studio, I want no more text boxes added, I have button.pdf
In C#, visual studio, I want no more text boxes added, I have button.pdf
 
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdf
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdfIn 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdf
In 2016, the Pew Research Center conducted a survey of 1,004 Canadia.pdf
 
In Bangladesh, where labor is relatively abundant, bricks are produ.pdf
In Bangladesh, where labor is relatively abundant, bricks are produ.pdfIn Bangladesh, where labor is relatively abundant, bricks are produ.pdf
In Bangladesh, where labor is relatively abundant, bricks are produ.pdf
 

Último

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 

Último (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 

Java getSpecial() function returns z word sentence or "boring

  • 1. In Java, Create a function, getSpecial. The function returns a string and takes no parameters. The function should instantiate a scanner, and get a user input. The user input will be a sentence that may contain words that start with a special letter. If a word starts with the letter 'z', we want the function to return the string: "I think z_____ is cool!", where z_____ would be the word that starts with z. We want to get the first word that starts with z, and ignore any other words. If there are no words that start with z, return "This is boring"