SlideShare a Scribd company logo
Hi there is problem in image displaying. So I can not see the diagram.
But I can tell you what will happen when you reverse the steps;
1. front = node
after this line, front of main list poinitng to new node 'node', so now we have only one element
in list.
so, node and front point to same element in list
2. node.setNext(front);
since node and front is same, so after this line node will point to itself, means create a loop of
one element.
Solution
Hi there is problem in image displaying. So I can not see the diagram.
But I can tell you what will happen when you reverse the steps;
1. front = node
after this line, front of main list poinitng to new node 'node', so now we have only one element
in list.
so, node and front point to same element in list
2. node.setNext(front);
since node and front is same, so after this line node will point to itself, means create a loop of
one element.

More Related Content

More from anuradhaartjwellery

b) explain to anyone that wants to listen to you .pdf
                     b) explain to anyone that wants to listen to you .pdf                     b) explain to anyone that wants to listen to you .pdf
b) explain to anyone that wants to listen to you .pdf
anuradhaartjwellery
 
While creating an idea of forming an MNC and initiating from a small.pdf
While creating an idea of forming an MNC and initiating from a small.pdfWhile creating an idea of forming an MNC and initiating from a small.pdf
While creating an idea of forming an MNC and initiating from a small.pdf
anuradhaartjwellery
 
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdfThis is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
anuradhaartjwellery
 
There are so many social inequalities like inequality in employment,.pdf
There are so many social inequalities like inequality in employment,.pdfThere are so many social inequalities like inequality in employment,.pdf
There are so many social inequalities like inequality in employment,.pdf
anuradhaartjwellery
 
Ksp = S^2 = 1.4 10^-11 .pdf
                     Ksp = S^2 = 1.4  10^-11                         .pdf                     Ksp = S^2 = 1.4  10^-11                         .pdf
Ksp = S^2 = 1.4 10^-11 .pdf
anuradhaartjwellery
 
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdfThe mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
anuradhaartjwellery
 
The carboxyl group is -COOH, where one of the oxygens is double bond.pdf
The carboxyl group is -COOH, where one of the oxygens is double bond.pdfThe carboxyl group is -COOH, where one of the oxygens is double bond.pdf
The carboxyl group is -COOH, where one of the oxygens is double bond.pdf
anuradhaartjwellery
 
smooth and continousSolutionsmooth and continous.pdf
smooth and continousSolutionsmooth and continous.pdfsmooth and continousSolutionsmooth and continous.pdf
smooth and continousSolutionsmooth and continous.pdf
anuradhaartjwellery
 
Scheme are impure functional language and it is possible to program .pdf
Scheme are impure functional language and it is possible to program .pdfScheme are impure functional language and it is possible to program .pdf
Scheme are impure functional language and it is possible to program .pdf
anuradhaartjwellery
 
Perhaps,   -   SolutionPerhaps,   -   .pdf
Perhaps,   -   SolutionPerhaps,   -   .pdfPerhaps,   -   SolutionPerhaps,   -   .pdf
Perhaps,   -   SolutionPerhaps,   -   .pdf
anuradhaartjwellery
 
Picture of cladogram will help to elaborate better.Albert Einstein.pdf
Picture of cladogram will help to elaborate better.Albert Einstein.pdfPicture of cladogram will help to elaborate better.Albert Einstein.pdf
Picture of cladogram will help to elaborate better.Albert Einstein.pdf
anuradhaartjwellery
 
c. I.dissolving more solute in an unsaturated sol.pdf
                     c. I.dissolving more solute in an unsaturated sol.pdf                     c. I.dissolving more solute in an unsaturated sol.pdf
c. I.dissolving more solute in an unsaturated sol.pdf
anuradhaartjwellery
 
Explanation- The caffeine present in coffee is diuretic that increa.pdf
Explanation- The caffeine present in coffee is diuretic that increa.pdfExplanation- The caffeine present in coffee is diuretic that increa.pdf
Explanation- The caffeine present in coffee is diuretic that increa.pdf
anuradhaartjwellery
 
Fast Healthcare Interoperability Resources is a draft standard descr.pdf
Fast Healthcare Interoperability Resources is a draft standard descr.pdfFast Healthcare Interoperability Resources is a draft standard descr.pdf
Fast Healthcare Interoperability Resources is a draft standard descr.pdf
anuradhaartjwellery
 
Ethical issue involvedThe President wants to postpone the write o.pdf
Ethical issue involvedThe President wants to postpone the write o.pdfEthical issue involvedThe President wants to postpone the write o.pdf
Ethical issue involvedThe President wants to postpone the write o.pdf
anuradhaartjwellery
 
Contingent liabilities are those future expenses that might occur. C.pdf
Contingent liabilities are those future expenses that might occur. C.pdfContingent liabilities are those future expenses that might occur. C.pdf
Contingent liabilities are those future expenses that might occur. C.pdf
anuradhaartjwellery
 
b-The pollutant is bioaccumulating in the community. Species C is a .pdf
b-The pollutant is bioaccumulating in the community. Species C is a .pdfb-The pollutant is bioaccumulating in the community. Species C is a .pdf
b-The pollutant is bioaccumulating in the community. Species C is a .pdf
anuradhaartjwellery
 
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdfb). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
anuradhaartjwellery
 
a. Start off with Na2SO4. The only insoluble sulf.pdf
                     a. Start off with Na2SO4. The only insoluble sulf.pdf                     a. Start off with Na2SO4. The only insoluble sulf.pdf
a. Start off with Na2SO4. The only insoluble sulf.pdf
anuradhaartjwellery
 
Answer Immunologic process leading to the formation of tubercle (.pdf
Answer Immunologic process leading to the formation of tubercle (.pdfAnswer Immunologic process leading to the formation of tubercle (.pdf
Answer Immunologic process leading to the formation of tubercle (.pdf
anuradhaartjwellery
 

More from anuradhaartjwellery (20)

b) explain to anyone that wants to listen to you .pdf
                     b) explain to anyone that wants to listen to you .pdf                     b) explain to anyone that wants to listen to you .pdf
b) explain to anyone that wants to listen to you .pdf
 
While creating an idea of forming an MNC and initiating from a small.pdf
While creating an idea of forming an MNC and initiating from a small.pdfWhile creating an idea of forming an MNC and initiating from a small.pdf
While creating an idea of forming an MNC and initiating from a small.pdf
 
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdfThis is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
This is done in 5 steps (using 3 pieces) Step 1 Acetylene is r.pdf
 
There are so many social inequalities like inequality in employment,.pdf
There are so many social inequalities like inequality in employment,.pdfThere are so many social inequalities like inequality in employment,.pdf
There are so many social inequalities like inequality in employment,.pdf
 
Ksp = S^2 = 1.4 10^-11 .pdf
                     Ksp = S^2 = 1.4  10^-11                         .pdf                     Ksp = S^2 = 1.4  10^-11                         .pdf
Ksp = S^2 = 1.4 10^-11 .pdf
 
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdfThe mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
The mycorrhizal fungi (MF) are associated with the roots of over 90 .pdf
 
The carboxyl group is -COOH, where one of the oxygens is double bond.pdf
The carboxyl group is -COOH, where one of the oxygens is double bond.pdfThe carboxyl group is -COOH, where one of the oxygens is double bond.pdf
The carboxyl group is -COOH, where one of the oxygens is double bond.pdf
 
smooth and continousSolutionsmooth and continous.pdf
smooth and continousSolutionsmooth and continous.pdfsmooth and continousSolutionsmooth and continous.pdf
smooth and continousSolutionsmooth and continous.pdf
 
Scheme are impure functional language and it is possible to program .pdf
Scheme are impure functional language and it is possible to program .pdfScheme are impure functional language and it is possible to program .pdf
Scheme are impure functional language and it is possible to program .pdf
 
Perhaps,   -   SolutionPerhaps,   -   .pdf
Perhaps,   -   SolutionPerhaps,   -   .pdfPerhaps,   -   SolutionPerhaps,   -   .pdf
Perhaps,   -   SolutionPerhaps,   -   .pdf
 
Picture of cladogram will help to elaborate better.Albert Einstein.pdf
Picture of cladogram will help to elaborate better.Albert Einstein.pdfPicture of cladogram will help to elaborate better.Albert Einstein.pdf
Picture of cladogram will help to elaborate better.Albert Einstein.pdf
 
c. I.dissolving more solute in an unsaturated sol.pdf
                     c. I.dissolving more solute in an unsaturated sol.pdf                     c. I.dissolving more solute in an unsaturated sol.pdf
c. I.dissolving more solute in an unsaturated sol.pdf
 
Explanation- The caffeine present in coffee is diuretic that increa.pdf
Explanation- The caffeine present in coffee is diuretic that increa.pdfExplanation- The caffeine present in coffee is diuretic that increa.pdf
Explanation- The caffeine present in coffee is diuretic that increa.pdf
 
Fast Healthcare Interoperability Resources is a draft standard descr.pdf
Fast Healthcare Interoperability Resources is a draft standard descr.pdfFast Healthcare Interoperability Resources is a draft standard descr.pdf
Fast Healthcare Interoperability Resources is a draft standard descr.pdf
 
Ethical issue involvedThe President wants to postpone the write o.pdf
Ethical issue involvedThe President wants to postpone the write o.pdfEthical issue involvedThe President wants to postpone the write o.pdf
Ethical issue involvedThe President wants to postpone the write o.pdf
 
Contingent liabilities are those future expenses that might occur. C.pdf
Contingent liabilities are those future expenses that might occur. C.pdfContingent liabilities are those future expenses that might occur. C.pdf
Contingent liabilities are those future expenses that might occur. C.pdf
 
b-The pollutant is bioaccumulating in the community. Species C is a .pdf
b-The pollutant is bioaccumulating in the community. Species C is a .pdfb-The pollutant is bioaccumulating in the community. Species C is a .pdf
b-The pollutant is bioaccumulating in the community. Species C is a .pdf
 
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdfb). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
b). epidermal cellsThe epidermal cells multiply at a faster rate. .pdf
 
a. Start off with Na2SO4. The only insoluble sulf.pdf
                     a. Start off with Na2SO4. The only insoluble sulf.pdf                     a. Start off with Na2SO4. The only insoluble sulf.pdf
a. Start off with Na2SO4. The only insoluble sulf.pdf
 
Answer Immunologic process leading to the formation of tubercle (.pdf
Answer Immunologic process leading to the formation of tubercle (.pdfAnswer Immunologic process leading to the formation of tubercle (.pdf
Answer Immunologic process leading to the formation of tubercle (.pdf
 

Recently uploaded

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
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
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
JezreelCabil2
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
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
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
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
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
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
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
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
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

Hi there is problem in image displaying. So I can not see the diagra.pdf

  • 1. Hi there is problem in image displaying. So I can not see the diagram. But I can tell you what will happen when you reverse the steps; 1. front = node after this line, front of main list poinitng to new node 'node', so now we have only one element in list. so, node and front point to same element in list 2. node.setNext(front); since node and front is same, so after this line node will point to itself, means create a loop of one element. Solution Hi there is problem in image displaying. So I can not see the diagram. But I can tell you what will happen when you reverse the steps; 1. front = node after this line, front of main list poinitng to new node 'node', so now we have only one element in list. so, node and front point to same element in list 2. node.setNext(front); since node and front is same, so after this line node will point to itself, means create a loop of one element.