SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
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"

Weitere ähnliche Inhalte

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
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
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
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
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
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
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
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
 
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
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
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
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 

Kürzlich hochgeladen (20)

GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
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
 
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)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
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
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
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
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
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
 
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
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 

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"