SlideShare a Scribd company logo
1 of 1
This has to be done in an IDE and I need the entire application
folder not just the code in a notepad doc.
Write
a Java program (non-GUI preferred) to demonstrate the
Singleton pattern.
The key parts of the singleton pattern are:
A private static variable to store the single instance called the
singleton
A public static method for callers to get a reference to the
instance
A private constructor so no callers can instantiate the object
directly
Using
these key parts, write a Java program that will allow a user of
the program to assign only one runner to each of the 8 lanes of
running track in a field.
Include
a brief documentation (in the code or in a separate document)
to explain the input (if any), processing and output of the
program.

More Related Content

More from terirasco

This chapter provides an explanation of what leads to the emergent p.docx
This chapter provides an explanation of what leads to the emergent p.docxThis chapter provides an explanation of what leads to the emergent p.docx
This chapter provides an explanation of what leads to the emergent p.docxterirasco
 
This assignment requires Ambulatory Care Coding experience.You CAN.docx
This assignment requires Ambulatory Care Coding experience.You CAN.docxThis assignment requires Ambulatory Care Coding experience.You CAN.docx
This assignment requires Ambulatory Care Coding experience.You CAN.docxterirasco
 
This Assignment will give you an opportunity to apply techniques of .docx
This Assignment will give you an opportunity to apply techniques of .docxThis Assignment will give you an opportunity to apply techniques of .docx
This Assignment will give you an opportunity to apply techniques of .docxterirasco
 
This assignment requires 3 drafts, 2 rough drafts and the final draf.docx
This assignment requires 3 drafts, 2 rough drafts and the final draf.docxThis assignment requires 3 drafts, 2 rough drafts and the final draf.docx
This assignment requires 3 drafts, 2 rough drafts and the final draf.docxterirasco
 
This assignment tests your ability to correctly identify and apply.docx
This assignment tests your ability to correctly identify and apply.docxThis assignment tests your ability to correctly identify and apply.docx
This assignment tests your ability to correctly identify and apply.docxterirasco
 
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docx
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docxThis assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docx
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docxterirasco
 
This assignment is to be completed with A+ original work due S.docx
This assignment is to be completed with A+ original work due S.docxThis assignment is to be completed with A+ original work due S.docx
This assignment is to be completed with A+ original work due S.docxterirasco
 
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxThis assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxterirasco
 
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docx
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docxThis assignment is due TOMORROW Monday March 7 at 12 noon (midda.docx
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docxterirasco
 
This assignment is due on Tuesday Dec 29th before midnight estern st.docx
This assignment is due on Tuesday Dec 29th before midnight estern st.docxThis assignment is due on Tuesday Dec 29th before midnight estern st.docx
This assignment is due on Tuesday Dec 29th before midnight estern st.docxterirasco
 
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxThis assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxterirasco
 
This assignment is for Prof Moses OnlyAssignment 2 Proj.docx
This assignment is for Prof Moses OnlyAssignment 2 Proj.docxThis assignment is for Prof Moses OnlyAssignment 2 Proj.docx
This assignment is for Prof Moses OnlyAssignment 2 Proj.docxterirasco
 
This assignment is based on the play Anna in the Tropics  (pleas.docx
This assignment is based on the play Anna in the Tropics  (pleas.docxThis assignment is based on the play Anna in the Tropics  (pleas.docx
This assignment is based on the play Anna in the Tropics  (pleas.docxterirasco
 
This assignment is an analysis of William Shakespeare, his plays and.docx
This assignment is an analysis of William Shakespeare, his plays and.docxThis assignment is an analysis of William Shakespeare, his plays and.docx
This assignment is an analysis of William Shakespeare, his plays and.docxterirasco
 
This assignment focusing one leader who use servant leadership to le.docx
This assignment focusing one leader who use servant leadership to le.docxThis assignment focusing one leader who use servant leadership to le.docx
This assignment focusing one leader who use servant leadership to le.docxterirasco
 
This assignment is a two page short autobiographical sketch describi.docx
This assignment is a two page short autobiographical sketch describi.docxThis assignment is a two page short autobiographical sketch describi.docx
This assignment is a two page short autobiographical sketch describi.docxterirasco
 
This assignment due after two hours from now. Massage me I cant c.docx
This assignment due after two hours from now. Massage me I cant c.docxThis assignment due after two hours from now. Massage me I cant c.docx
This assignment due after two hours from now. Massage me I cant c.docxterirasco
 
This assignment focuses on how the management practices of plannin.docx
This assignment focuses on how the management practices of plannin.docxThis assignment focuses on how the management practices of plannin.docx
This assignment focuses on how the management practices of plannin.docxterirasco
 
This assignment consists of two (2) sections a project introduction.docx
This assignment consists of two (2) sections a project introduction.docxThis assignment consists of two (2) sections a project introduction.docx
This assignment consists of two (2) sections a project introduction.docxterirasco
 
This article includes details and assertions about the ethical choic.docx
This article includes details and assertions about the ethical choic.docxThis article includes details and assertions about the ethical choic.docx
This article includes details and assertions about the ethical choic.docxterirasco
 

More from terirasco (20)

This chapter provides an explanation of what leads to the emergent p.docx
This chapter provides an explanation of what leads to the emergent p.docxThis chapter provides an explanation of what leads to the emergent p.docx
This chapter provides an explanation of what leads to the emergent p.docx
 
This assignment requires Ambulatory Care Coding experience.You CAN.docx
This assignment requires Ambulatory Care Coding experience.You CAN.docxThis assignment requires Ambulatory Care Coding experience.You CAN.docx
This assignment requires Ambulatory Care Coding experience.You CAN.docx
 
This Assignment will give you an opportunity to apply techniques of .docx
This Assignment will give you an opportunity to apply techniques of .docxThis Assignment will give you an opportunity to apply techniques of .docx
This Assignment will give you an opportunity to apply techniques of .docx
 
This assignment requires 3 drafts, 2 rough drafts and the final draf.docx
This assignment requires 3 drafts, 2 rough drafts and the final draf.docxThis assignment requires 3 drafts, 2 rough drafts and the final draf.docx
This assignment requires 3 drafts, 2 rough drafts and the final draf.docx
 
This assignment tests your ability to correctly identify and apply.docx
This assignment tests your ability to correctly identify and apply.docxThis assignment tests your ability to correctly identify and apply.docx
This assignment tests your ability to correctly identify and apply.docx
 
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docx
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docxThis assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docx
This assignment is due Monday Jan. 25 at 8pm EST. and guidlines .docx
 
This assignment is to be completed with A+ original work due S.docx
This assignment is to be completed with A+ original work due S.docxThis assignment is to be completed with A+ original work due S.docx
This assignment is to be completed with A+ original work due S.docx
 
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxThis assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
 
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docx
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docxThis assignment is due TOMORROW Monday March 7 at 12 noon (midda.docx
This assignment is due TOMORROW Monday March 7 at 12 noon (midda.docx
 
This assignment is due on Tuesday Dec 29th before midnight estern st.docx
This assignment is due on Tuesday Dec 29th before midnight estern st.docxThis assignment is due on Tuesday Dec 29th before midnight estern st.docx
This assignment is due on Tuesday Dec 29th before midnight estern st.docx
 
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docxThis assignment is due Tuesday, December 1st @ 1600 easternpl.docx
This assignment is due Tuesday, December 1st @ 1600 easternpl.docx
 
This assignment is for Prof Moses OnlyAssignment 2 Proj.docx
This assignment is for Prof Moses OnlyAssignment 2 Proj.docxThis assignment is for Prof Moses OnlyAssignment 2 Proj.docx
This assignment is for Prof Moses OnlyAssignment 2 Proj.docx
 
This assignment is based on the play Anna in the Tropics  (pleas.docx
This assignment is based on the play Anna in the Tropics  (pleas.docxThis assignment is based on the play Anna in the Tropics  (pleas.docx
This assignment is based on the play Anna in the Tropics  (pleas.docx
 
This assignment is an analysis of William Shakespeare, his plays and.docx
This assignment is an analysis of William Shakespeare, his plays and.docxThis assignment is an analysis of William Shakespeare, his plays and.docx
This assignment is an analysis of William Shakespeare, his plays and.docx
 
This assignment focusing one leader who use servant leadership to le.docx
This assignment focusing one leader who use servant leadership to le.docxThis assignment focusing one leader who use servant leadership to le.docx
This assignment focusing one leader who use servant leadership to le.docx
 
This assignment is a two page short autobiographical sketch describi.docx
This assignment is a two page short autobiographical sketch describi.docxThis assignment is a two page short autobiographical sketch describi.docx
This assignment is a two page short autobiographical sketch describi.docx
 
This assignment due after two hours from now. Massage me I cant c.docx
This assignment due after two hours from now. Massage me I cant c.docxThis assignment due after two hours from now. Massage me I cant c.docx
This assignment due after two hours from now. Massage me I cant c.docx
 
This assignment focuses on how the management practices of plannin.docx
This assignment focuses on how the management practices of plannin.docxThis assignment focuses on how the management practices of plannin.docx
This assignment focuses on how the management practices of plannin.docx
 
This assignment consists of two (2) sections a project introduction.docx
This assignment consists of two (2) sections a project introduction.docxThis assignment consists of two (2) sections a project introduction.docx
This assignment consists of two (2) sections a project introduction.docx
 
This article includes details and assertions about the ethical choic.docx
This article includes details and assertions about the ethical choic.docxThis article includes details and assertions about the ethical choic.docx
This article includes details and assertions about the ethical choic.docx
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

This has to be done in an IDE and I need the entire application fold.docx

  • 1. This has to be done in an IDE and I need the entire application folder not just the code in a notepad doc. Write a Java program (non-GUI preferred) to demonstrate the Singleton pattern. The key parts of the singleton pattern are: A private static variable to store the single instance called the singleton A public static method for callers to get a reference to the instance A private constructor so no callers can instantiate the object directly Using these key parts, write a Java program that will allow a user of the program to assign only one runner to each of the 8 lanes of running track in a field. Include a brief documentation (in the code or in a separate document) to explain the input (if any), processing and output of the program.