Iterating Statements
For Loop This loop can be used for executing the statements multiple times. A for loop has to be used when we know the exact number of interations. Syntax Program…
For Loop This loop can be used for executing the statements multiple times. A for loop has to be used when we know the exact number of interations. Syntax Program…
The switch statement can be used for executing a group of statements based on a value. Syntax Program5: Rule1: Specifying the arguments to switch statement is mandatory and it should…
activity_main.xml MainActivity.java DbHandler.java DetailsActivity.Java activity_details.xml list_row.xml
Api: http://reqres.in/api/users?page=2 { "page": 2, "per_page": 6, "total": 12, "total_pages": 2, "data": [ { "id": 7, "email": "michael.lawson@reqres.in", "first_name": "Michael", "last_name": "Lawson", "avatar": "https://reqres.in/img/faces/7-image.jpg" }, { "id": 8, "email": "lindsay.ferguson@reqres.in",…
activity_main.xml MainActivity.java ConnectionDetector.java AndoidManifest.xml
We will do registration using below API URL: http://reqres.in/api/register Request: {“email”:”raj@gmail.com”,”password”:”raj1256″} Response: {“page”:1,”per_page”:6,”total”:12,”total_pages”:2,”data”:[{“id”:1,”name”:”cerulean”,”year”:2000,” color”:”#98B2D1″,”pantone_value”:”15-4020″},{“id”:2,”name”:”fuchsia rose”,”year”:2001, “color”:”#C74375″, “pantone_value”:”17-2031″},{“id”:3,”name”:”true red”,”year”:2002,”color”:”#BF1932″,”pantone_value”:”19-1664″},{“id”:4,”name”:”aqua sky”,”year”:2003,”color”:”#7BC4C4″,”pantone_value”:”14-4811″},{“id”:5, “name”:”tigerlily”,”year”:2004,”color”:”#E2583E”,”pantone_value”:”17-1456″},{“id”:6,”name”:”blue turquoise”, “year”:2005,”color”:”#53B0AE”,”pantone_value”:”15-5217″}],”support”:{“url”:”https://reqres.in/#support-heading”, “text”:”To keep ReqRes free, contributions towards server costs…
Understanding of Web services Web services are open standard (XML, SOAP, HTTP etc.) based Web applications that interact with other web applications for the purpose of exchanging data. Web Services…
If-else Statement: If else statement can be used for executing a group of statements based on condition. Syntax If the condition is satiesfied then it will be executing if block…
The statement of a java program will be executed in sequential order. If we don’t want to execute the statements in sequential order i.e. if we want to execute the…
activity_main.xml MainActivity.kt