SlideShare a Scribd company logo
public class ExampleCode2 {
public static void countDown1(int num) {
int a = 0;
for (int x = num; x >0; x--) {
System.out.println(x);
}
}
public static void countDown2(int num) {
if (num ==1) {
System.out.println(1);
} else {
System.out.println(num);
countDown2(num-1);
}
}
public static void main(String[] args) {
int start = 4;
countDown1(start);
countDown2(start);
}
}
can somesone help making Memory Diagram with this code?
public class ExampleCode2 {   public static void countDown1(int num) {.docx

More Related Content

More from EdwardEkRChapmann

Prove x is even (x+1)2 is odd (hint- use a direct proof).docx
Prove x is even (x+1)2 is odd (hint- use a direct proof).docxProve x is even (x+1)2 is odd (hint- use a direct proof).docx
Prove x is even (x+1)2 is odd (hint- use a direct proof).docxEdwardEkRChapmann
 
Protein utilization by bacteria leads to generation of end products th.docx
Protein utilization by bacteria leads to generation of end products th.docxProtein utilization by bacteria leads to generation of end products th.docx
Protein utilization by bacteria leads to generation of end products th.docxEdwardEkRChapmann
 
Project Scope Statement for the MXE Project Introduction - The purpo.docx
Project Scope Statement for the MXE Project   Introduction - The purpo.docxProject Scope Statement for the MXE Project   Introduction - The purpo.docx
Project Scope Statement for the MXE Project Introduction - The purpo.docxEdwardEkRChapmann
 
Project Closing Document The purpose of this document is to capture.docx
Project Closing Document   The purpose of this document is to capture.docxProject Closing Document   The purpose of this document is to capture.docx
Project Closing Document The purpose of this document is to capture.docxEdwardEkRChapmann
 
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docx
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docxProblem II - Control of gastric acidity- 1- What is the trigger to tar.docx
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docxEdwardEkRChapmann
 
Problem B (5 points)- The health board of a major city wants to know i.docx
Problem B (5 points)- The health board of a major city wants to know i.docxProblem B (5 points)- The health board of a major city wants to know i.docx
Problem B (5 points)- The health board of a major city wants to know i.docxEdwardEkRChapmann
 
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docx
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docxProblem B part a Suppose A-B are events with indicators IA-IB- What va.docx
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docxEdwardEkRChapmann
 
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docx
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docxProblem 8 and 9 Entropy is closely related to something known as Kolmo.docx
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docxEdwardEkRChapmann
 
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docx
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docxProblem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docx
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docxEdwardEkRChapmann
 
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docx
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docxProblem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docx
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docxEdwardEkRChapmann
 
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docx
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docxProblem 2 (20 points- graded on accuracy) Consider a circle of radius.docx
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docxEdwardEkRChapmann
 
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docx
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docxPresent 3 advantages and 3 disadvantages of each strategy option- Focu.docx
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docxEdwardEkRChapmann
 
Problem 1- (20pt) Four components are connected to form a system as sh.docx
Problem 1- (20pt) Four components are connected to form a system as sh.docxProblem 1- (20pt) Four components are connected to form a system as sh.docx
Problem 1- (20pt) Four components are connected to form a system as sh.docxEdwardEkRChapmann
 
Probability Distribution -2 What is the Mean of this Probability Di.docx
Probability Distribution    -2 What is the Mean of this Probability Di.docxProbability Distribution    -2 What is the Mean of this Probability Di.docx
Probability Distribution -2 What is the Mean of this Probability Di.docxEdwardEkRChapmann
 
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docx
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docxPrioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docx
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docxEdwardEkRChapmann
 
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docx
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docxPrinciples of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docx
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docxEdwardEkRChapmann
 
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docx
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docxPrinciples of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docx
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docxEdwardEkRChapmann
 
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docx
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docxPrinciples of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docx
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docxEdwardEkRChapmann
 
Principles of Ecology Unit 7- Assignment 1 chapters 19 and 21-1 Cha.docx
Principles of Ecology Unit 7- Assignment 1  chapters 19 and 21-1   Cha.docxPrinciples of Ecology Unit 7- Assignment 1  chapters 19 and 21-1   Cha.docx
Principles of Ecology Unit 7- Assignment 1 chapters 19 and 21-1 Cha.docxEdwardEkRChapmann
 
Polymorphism is the idea that describes how objects that inherit from.docx
Polymorphism is the idea that describes how objects that inherit from.docxPolymorphism is the idea that describes how objects that inherit from.docx
Polymorphism is the idea that describes how objects that inherit from.docxEdwardEkRChapmann
 

More from EdwardEkRChapmann (20)

Prove x is even (x+1)2 is odd (hint- use a direct proof).docx
Prove x is even (x+1)2 is odd (hint- use a direct proof).docxProve x is even (x+1)2 is odd (hint- use a direct proof).docx
Prove x is even (x+1)2 is odd (hint- use a direct proof).docx
 
Protein utilization by bacteria leads to generation of end products th.docx
Protein utilization by bacteria leads to generation of end products th.docxProtein utilization by bacteria leads to generation of end products th.docx
Protein utilization by bacteria leads to generation of end products th.docx
 
Project Scope Statement for the MXE Project Introduction - The purpo.docx
Project Scope Statement for the MXE Project   Introduction - The purpo.docxProject Scope Statement for the MXE Project   Introduction - The purpo.docx
Project Scope Statement for the MXE Project Introduction - The purpo.docx
 
Project Closing Document The purpose of this document is to capture.docx
Project Closing Document   The purpose of this document is to capture.docxProject Closing Document   The purpose of this document is to capture.docx
Project Closing Document The purpose of this document is to capture.docx
 
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docx
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docxProblem II - Control of gastric acidity- 1- What is the trigger to tar.docx
Problem II - Control of gastric acidity- 1- What is the trigger to tar.docx
 
Problem B (5 points)- The health board of a major city wants to know i.docx
Problem B (5 points)- The health board of a major city wants to know i.docxProblem B (5 points)- The health board of a major city wants to know i.docx
Problem B (5 points)- The health board of a major city wants to know i.docx
 
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docx
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docxProblem B part a Suppose A-B are events with indicators IA-IB- What va.docx
Problem B part a Suppose A-B are events with indicators IA-IB- What va.docx
 
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docx
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docxProblem 8 and 9 Entropy is closely related to something known as Kolmo.docx
Problem 8 and 9 Entropy is closely related to something known as Kolmo.docx
 
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docx
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docxProblem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docx
Problem 4-45 (LO- 4) Nell and Kirby are in the process of negotiating.docx
 
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docx
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docxProblem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docx
Problem 3- Reynolds number (Problem 7 of the textbook) (4 points) A sa.docx
 
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docx
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docxProblem 2 (20 points- graded on accuracy) Consider a circle of radius.docx
Problem 2 (20 points- graded on accuracy) Consider a circle of radius.docx
 
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docx
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docxPresent 3 advantages and 3 disadvantages of each strategy option- Focu.docx
Present 3 advantages and 3 disadvantages of each strategy option- Focu.docx
 
Problem 1- (20pt) Four components are connected to form a system as sh.docx
Problem 1- (20pt) Four components are connected to form a system as sh.docxProblem 1- (20pt) Four components are connected to form a system as sh.docx
Problem 1- (20pt) Four components are connected to form a system as sh.docx
 
Probability Distribution -2 What is the Mean of this Probability Di.docx
Probability Distribution    -2 What is the Mean of this Probability Di.docxProbability Distribution    -2 What is the Mean of this Probability Di.docx
Probability Distribution -2 What is the Mean of this Probability Di.docx
 
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docx
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docxPrioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docx
Prioritize in order- Prioritize in order- Malnutrition- Suicidal Behav.docx
 
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docx
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docxPrinciples of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docx
Principles of Ecology Unit 8- Assignment 2 Critical Thinking- Conserva.docx
 
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docx
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docxPrinciples of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docx
Principles of Ecology Unit 6- Assignment 1 Homework chapters 17 and 18.docx
 
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docx
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docxPrinciples of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docx
Principles of Ecology Unit 8- Assignment 1 chapters 21-2-21-5 and 22.docx
 
Principles of Ecology Unit 7- Assignment 1 chapters 19 and 21-1 Cha.docx
Principles of Ecology Unit 7- Assignment 1  chapters 19 and 21-1   Cha.docxPrinciples of Ecology Unit 7- Assignment 1  chapters 19 and 21-1   Cha.docx
Principles of Ecology Unit 7- Assignment 1 chapters 19 and 21-1 Cha.docx
 
Polymorphism is the idea that describes how objects that inherit from.docx
Polymorphism is the idea that describes how objects that inherit from.docxPolymorphism is the idea that describes how objects that inherit from.docx
Polymorphism is the idea that describes how objects that inherit from.docx
 

Recently uploaded

GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativePeter Windle
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationDelapenabediema
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptxJosvitaDsouza2
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxJisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfYibeltalNibretu
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chipsGeoBlogs
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdfCarlosHernanMontoyab2
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 

Recently uploaded (20)

GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 

public class ExampleCode2 { public static void countDown1(int num) {.docx

  • 1. public class ExampleCode2 { public static void countDown1(int num) { int a = 0; for (int x = num; x >0; x--) { System.out.println(x); } } public static void countDown2(int num) { if (num ==1) { System.out.println(1); } else { System.out.println(num); countDown2(num-1); } } public static void main(String[] args) { int start = 4; countDown1(start); countDown2(start); } } can somesone help making Memory Diagram with this code?