Categories
Mastering Development

How to move the data that I have called from the Firebase real-time database, in a listview to another activity in android studio?

So, I have a simple listview application. When I click an item, it will send the data to the next activity using Bundle. In the first time, I use this JSON structure "teacher": [ { "name": "Carl", "age": "40" }, { "name": "Johnson", "age": "44" } ], And this is my Java code: Query query […]

Categories
Mastering Development Software

What is the normal form of JSON?

This is going to sound like a trivial question, but I like to think it’s actually a deep one. The simple quesiton is, "What is the normal form of a typical JSON object?" For reference, I put an example below, but consider any typcial JSON object you’ve dealt with, same question applies. I ask this […]

Categories
Development

Merge multiple array in php laravel

Let us say I have a set of data of the first name first name : `{ “abc”,”bvd”,”jhhg”, “jju”,”jju”}` Last name : `{ “hhh”,”uuu”,”tre”, “vvg”,”yyy”}` Age : `{ “44”,”33″,”34″, “34,”65″}` I want the result to return as { “fname” : “abc”, “lname” : “hhh”, “age” : “44” }, { “fname” : “bvd”, “lname” : “uuu”, […]

Categories
Development

dart flutter max value from list of objects

Looking for some help how to select oldest age from users in flutter object list… users = [ { id: 123, name: ‘Bob’, age: 25}, { id: 345, name: ‘Joe’, age: 44}, … ];