SlideShare a Scribd company logo
* Requied for Android app.
1- Layout code.
2- Java code Design a small app to convert from Hijri to Gregorian and vice versa (keep it simple
as if on input 2016 you get 1437).
Solution
import org.joda.time.Chronology;
import org.joda.time.LocalDate;
import org.joda.time.chrono.IslamicChronology;
import org.joda.time.chrono.ISOChronology;
public class Test {
public static void main(String[] args) throws Exception {
Chronology iso = ISOChronology.getInstanceUTC();
Chronology hijri = IslamicChronology.getInstanceUTC();
LocalDate todayIso = new LocalDate(2016, 3, 31, iso);
LocalDate todayHijri = new LocalDate(todayIso.toDateTimeAtStartOfDay(),
hijri);
System.out.println(todayHijri); // 1437-05-19
}
}

More Related Content

More from FashionColZone

A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdfA Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
FashionColZone
 
Assume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdfAssume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdf
FashionColZone
 
Briefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdfBriefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdf
FashionColZone
 
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdfA satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
FashionColZone
 
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
FashionColZone
 
You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdf
FashionColZone
 
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdfYou are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
FashionColZone
 
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
Why animals migrate  I need 5 new ideas (exclude  reproduction , s.pdfWhy animals migrate  I need 5 new ideas (exclude  reproduction , s.pdf
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
FashionColZone
 
Which of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdfWhich of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdf
FashionColZone
 
What are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdfWhat are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdf
FashionColZone
 
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdfTYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
FashionColZone
 
The total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdfThe total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdf
FashionColZone
 
1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf
FashionColZone
 
The assembly instruction implemented at the OS4 level isSelect on.pdf
The assembly instruction implemented at the OS4 level isSelect on.pdfThe assembly instruction implemented at the OS4 level isSelect on.pdf
The assembly instruction implemented at the OS4 level isSelect on.pdf
FashionColZone
 
Select all of the following that are true of the middle, lipid portio.pdf
Select all of the following that are true of the middle, lipid portio.pdfSelect all of the following that are true of the middle, lipid portio.pdf
Select all of the following that are true of the middle, lipid portio.pdf
FashionColZone
 
QUESTION 18A company has a signed contract for a credit sale of pr.pdf
QUESTION 18A company has a signed contract for a credit sale of pr.pdfQUESTION 18A company has a signed contract for a credit sale of pr.pdf
QUESTION 18A company has a signed contract for a credit sale of pr.pdf
FashionColZone
 
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdf
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdfQuestion 1 On 21 November, the weekly payroll register of Python Ltd .pdf
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdf
FashionColZone
 
Please give me an example code of a complex PovRay Program that crea.pdf
Please give me an example code of a complex PovRay Program that crea.pdfPlease give me an example code of a complex PovRay Program that crea.pdf
Please give me an example code of a complex PovRay Program that crea.pdf
FashionColZone
 

More from FashionColZone (18)

A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdfA Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
 
Assume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdfAssume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdf
 
Briefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdfBriefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdf
 
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdfA satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
 
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
 
You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdf
 
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdfYou are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
 
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
Why animals migrate  I need 5 new ideas (exclude  reproduction , s.pdfWhy animals migrate  I need 5 new ideas (exclude  reproduction , s.pdf
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
 
Which of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdfWhich of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdf
 
What are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdfWhat are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdf
 
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdfTYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
 
The total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdfThe total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdf
 
1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf
 
The assembly instruction implemented at the OS4 level isSelect on.pdf
The assembly instruction implemented at the OS4 level isSelect on.pdfThe assembly instruction implemented at the OS4 level isSelect on.pdf
The assembly instruction implemented at the OS4 level isSelect on.pdf
 
Select all of the following that are true of the middle, lipid portio.pdf
Select all of the following that are true of the middle, lipid portio.pdfSelect all of the following that are true of the middle, lipid portio.pdf
Select all of the following that are true of the middle, lipid portio.pdf
 
QUESTION 18A company has a signed contract for a credit sale of pr.pdf
QUESTION 18A company has a signed contract for a credit sale of pr.pdfQUESTION 18A company has a signed contract for a credit sale of pr.pdf
QUESTION 18A company has a signed contract for a credit sale of pr.pdf
 
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdf
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdfQuestion 1 On 21 November, the weekly payroll register of Python Ltd .pdf
Question 1 On 21 November, the weekly payroll register of Python Ltd .pdf
 
Please give me an example code of a complex PovRay Program that crea.pdf
Please give me an example code of a complex PovRay Program that crea.pdfPlease give me an example code of a complex PovRay Program that crea.pdf
Please give me an example code of a complex PovRay Program that crea.pdf
 

Recently uploaded

How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
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
 
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
Jheel Barad
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
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
GeoBlogs
 
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
Tamralipta Mahavidyalaya
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
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...
 
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
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
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
 
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
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

Requied for Android app.1- Layout code.2- Java code Design a s.pdf

  • 1. * Requied for Android app. 1- Layout code. 2- Java code Design a small app to convert from Hijri to Gregorian and vice versa (keep it simple as if on input 2016 you get 1437). Solution import org.joda.time.Chronology; import org.joda.time.LocalDate; import org.joda.time.chrono.IslamicChronology; import org.joda.time.chrono.ISOChronology; public class Test { public static void main(String[] args) throws Exception { Chronology iso = ISOChronology.getInstanceUTC(); Chronology hijri = IslamicChronology.getInstanceUTC(); LocalDate todayIso = new LocalDate(2016, 3, 31, iso); LocalDate todayHijri = new LocalDate(todayIso.toDateTimeAtStartOfDay(), hijri); System.out.println(todayHijri); // 1437-05-19 } }