Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Lucy nwefht




Posted Questions


No Question(s) posted yet!

Posted Answers



Answer


  • isolate immediately.
  • get tested.
  • stay home until you know the result.

Answer is posted for the following question.

What should i do if i may have been in contact with someone with covid?

Answer


Dr Scott Mackie P

Address: Calvary Health Care Tasmania, 49 Augusta Rd, Lenah Valley TAS 7008, Australia


Answer is posted for the following question.

What is the best hip surgeon in Hobart, Australia?

Answer


Although there's no cure for type 2 diabetes, studies show it's possible for some people to reverse it. Through diet changes and weight loss, you may be able to reach and hold normal blood sugar levelswithout medication. This doesn't mean you're completely cured. Type 2 diabetes is an ongoing disease.


Answer is posted for the following question.

How to delete diabetes?

Answer


Glycerol Phenylbutyrate is a nitrogen-binding agent, prescribed for the treatment of Urea Cycle Disorders (UCD) in pediatric patients more than 2 years old and adults.


Answer is posted for the following question.

What is the use of Glycerol Phenylbutyrate medicine/drug?

Answer


Chicken and waffles are often served with syrup, honey, or both. Drizzle the topping of your choice over the chicken and waffles, or keep them on the side for dipping if you prefer. For extra decadence, put a little butter on the waffles as well.


Answer is posted for the following question.

How do you eat fried chicken and waffles?

Answer


1
ArrayList<Countries> listCountries = new ArrayList<>();//country
2
        ArrayList<Detail> listDetails = new ArrayList<>();//listDetail
3
        ArrayList<Detail> listSub =  new ArrayList<>();//List Sub
4
        Countries countries = new Countries();
5
        countries.setId(1);
6
        countries.setName(Sim);
7
        countries.setGender(M);
8
        countries.setCountry(khompong Chhnang);
9
        countries.setPostalCode(225566);
10
        //Add Countries object to ArrayList
11
        listCountries.add(countries);
12
        Detail detail =  new Detail();
13
        detail.setPhone(09659694146);
14
        detail.setAddress(11H);
15
        //Add Detail object to ArrayList
16
        listDetails.add(detail);
17
        Detail detail1 =  new Detail();
18
        detail1.setPhone(2222);
19
        detail1.setAddress(tttt2);
20
        listSub.add(detail1);
21
        JSONObject jsonObject_sub = new JSONObject();
22
        JSONArray jsonArray_sub = new JSONArray();
23
        for (int i = 0; i < listSub.size(); i++){
24
            try {
25
                jsonObject_sub.put(Phone,listSub.get(i).getPhone());
26
                jsonObject_sub.put(Address,listSub.get(i).getAddress());
27
                jsonArray_sub.put(jsonObject_sub);
28
            } catch (JSONException e) {
29
                e.printStackTrace();
30
            }
31
        }
32
        JSONObject jb = new JSONObject();
33
        JSONArray jsonArray = new JSONArray();
34
        for (int i = 0; i<listDetails.size(); i++){
35
            //convert to JSONObject
36
            try {
37
                jb.put(Address,listDetails.get(i).getAddress());
38
                jb.put(Phone,listDetails.get(i).getPhone());
39
                jb.put(sub_detail,jsonArray_sub);
40
            } catch (JSONException e) {
41
                e.printStackTrace();
42
            }
43
        }
44
        //convert JSONObject to JSONArray
45
        for (int i = 0; i < 3; i++){
46
            jsonArray.put(jb);
47
        }
48
        JSONObject jsonObject = new JSONObject();
49
        for (int i=0; i<listCountries.size(); i++){
50
            try {
51
                //convert to JSONObject
52
                jsonObject.put(id,listCountries.get(i).getId());
53
                jsonObject.put(name,listCountries.get(i).getName());
54
                jsonObject.put(gender,listCountries.get(i).getGender());
55
                //put JSONArray into JSONObject
56
                jsonObject.put(detail,jsonArray);
57
                jsonObject.put(country,listCountries.get(i).getCountry());
58
                jsonObject.put(postal_code,listCountries.get(i).getPostalCode());
59
            } catch (JSONException e) {
60
                e.printStackTrace();
61
            }
62
            Log.d(>>>, jsonObject: +jsonObject);
63
        }
64
================Output===========================================================
65
  {id:1,name:Sim,gender:M,detail:[{Address:11H,Phone:09659694146,sub_detail:[{Phone:2222,Address:tttt2}]},{Address:11H,Phone:09659694146,sub_detail:[{Phone:2222,Address:tttt2}]},{Address:11H,Phone:09659694146,sub_detail:[{Phone:2222,Address:tttt2}]}],country:khompong Chhnang,postal_code:225566}

Answer is posted for the following question.

How to learn json (Javascript Scripting Language)


Wait...