SlideShare a Scribd company logo
1 of 1
Download to read 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"

More Related Content

More from 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
 

More from 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
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

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"