So let's actually first of all create some classes.
So first we need to model OK.
We need a model in order to help us to actually store the data that we actually receive from the Internet.
So just right click on this package here and the new.
And then click on package here.
Let's actually create another package and the name of this package is going to be modeled.
And then click on OK.
And right click on this or model directory here.
OK.
This package right click on it new and then click on our class Java class and for the name of your a
Java class just type in here iTunes iTunes stuff.
So if you want to actually get to the iTunes store from the Internet.
And I actually created this model class here inside this model package in order to actually hold those
data that we actually receive from the Internet.
So I just need to click on OK here.
So this is our iTunes stuff class.
So now I'm going actually putting some lines of code here.
So now I'm going to pasting some lines of code here and then I'm going to explain to you what's going
on here.
So as you can see here these are the lines of code that actually paste that here.
First of all in line number 10 I created a variable.
I actually declared this variable which is of type in screen.
Right.
And the name of this variable is type.
So I want to actually get the type as you can see here.
For example this zero here this results zero results number zero.
We have these rappers type right.
I want to actually get this data.
I want to actually give you this.
Jason Diski and then get this attached data.
Here is this value.
OK I want to get it give this a key and get this value.
So I just need to store this value in about here.
So in my items of class I actually declared this variable which is of type strain.
And the name of this variable is type.
So as you can see here I'm going to actually store this value in Nevada valuable as you can see here
track.
OK.
Inside this string valuable as you can see this is actually a string value as you can see the the values
that are in color green as you can see here.
As you can see these values are strong values and the values that are in red color are actually integer
value as you can see here.
OK.
So these are values that are in green color as you can see these actually are actually string values.
So this just try to value is actually a string value and I want to assign that value to this type string
value but OK.
And here in line 11 I create I actually declared another string Well as you can see and the name of
this value bet is kind.
OK.
And in here as you can see in our web browser we have this kind here.
And again its value is signed.
As you can see here.
So I want to actually get this value.
So I need to actually use this key in order to get this value right.
So we have the sun here.
So again because this song value is actually of type string.
I need to store that value to a string by the string variable and I can see this right here is of type
string and in line 12 as you can see here.
I actually declared and other valuable which is of type strange.
And the name of this variable is artist name.
So here in our web browser as you can see here for example for these are zero results and as you can
see as you can see here the results zero as you can see.
We have this artist name which is Michael Jackson.
Right.
So I want to actually get this artist name which is of type strange and storied in my valuable that
I actually declared inside these items of a class.
And as you can see here it is the name of this rally and is artist name.
So you want to store this value with this artist name variable.
And in 9:13 I actually declared another variable which is of types three again and the name of this
variable is a collection name.
And here as you can see we have this collection name as you can see here.
So I want to actually store this string value to my valuable collection name as you can see here and
in line 14 I actually declared another variable which is again of type streamed and the name of this
variable is a track name.
So here as you can see we have this track name here.
So I want to actually store this value the value of these threatening to my storing valuable which I
declared in line 14 and in line 15 as you can see here I declared this event which is of tapes three
and again.
And the name of this variable is Artist Review RL.
So as you can see here we have this artist you are in here of a different quality as you can see here.
ARTIST YOU are the artist you are 60 artists you are at this rally.
OK.
So as you can see here we have different value or else for actually looking at the image.
And as you can see here these are the different quality of the image.
OK.
So for example if I actually select this model here and right click on it and then click on Koepp copy
and let's actually and in my web browser my search bar here.
I just need to search up paste that value here and that person entered here on my keyboard.
So now we can see this image here.
OK.
So by using that you tell that specific RL You can actually download the image in our application.
So that's why I actually create it.
I actually put this image here in my XML file in order to download the image from the Internet and put
it here.
So he has that image.
This is the image that we want to actually download from the Internet.
So I just need to click on this patch button here.
So here as you can see this is against our data and data and I need to open the results here.
And these results are zero as you can see here.
So if we have these artist you or else here artist view you huddle in order to see the image in different
qualities.
So now let's actually go back to our Android studio.
So as you can see here inside this iTunes stuff plus we have these valuables right.
So now of need to actually declare these variables as private valuables.
This is really important.
Private's OK always declare your instance variables as private variables.
OK.
So and then in order to actually set or get these values we need to actually provide setters or getters
for these instance variables.
OK.
So these are the private instance variables and now I can actually provide setters and getters for these
instance variables.
So in order to actually generate the instance variables automatically I just need to Right-Click inside
these items stuff class and then click on generate here and as you can see this is generate and then
click on get here and sit here and just select all of these instance variables here as you can see and
then click on OK.
So now the ID actually automatically generated these setters and getters for us.
So as you can see here the first one is get her get type for this type instance malleable as you can
see the first the second one is some type as you can see here we are actually setting the type of this
instance variable to get kind said can't get artist name sit artist name get collection name set collection
name.
So remember that this is very important that you are to declare your get Haras or setter's as public.
OK.
These are these are the public Misfit's and set collection name get our name as you can see here.
Said good collection name set collection name get thrax name attract name as you can see here.
Get artist to view you all set artist you on it.
OK so now let's actually go to our project structure here.
And then inside our job folder and inside this package that as you can see it is a model is inside this
package right.
So let's actually click on this package here and now let's actually create a class.
Another class another is double class just right click this package new dhaba class.
So the name of this class is going to be Jasen I-tunes parser and then click on OK.
So now as you can see here our Jason Idahoans part of the class is actually created.
So now so now I'm going to paste in some lines of code here and then I'm going to explain to you what's
going on here.
So as you can see here these are the lines of code that are actually pasted here and here and as you
can see in lines a 12 flute 15 I have this method.
And as you see it the axis modifier of this method is private.
This is actually static.
And the return type of this method is strange.
OK.
And the name of this method is get strange.
OK so as you can see here in our web browser here as you can see if you want to actually get these string
values like this throuch song Michael Jackson or other values that are actually strange that they're
data types are actually string.
OK.
As you can see here these values that are actually in a green color or actually string values.
So here if I want to get those thing values I need a method here.
So this is that if it gets strange.
And this left accepts two arguments.
OK.
So the first argument is actually as you can see here is of type is three and its name is pagen name.
So as you can see here in our web browser these values for example this wrapper type is actually the
tag meaning this kind.
Here as you can see is the tag name artist ID tag name.
OK.
And these values after the colon actually the values that are related to these Paganini's as you can
see here.
So we have this tag name.
Ok these values that are in black color as you can see here.
And we have this Jasen object as you can see here as the arguments of this method.
As you can see here and this Biffen actually fros Jaison exception.
OK.
We may actually pass that ran tag name to this Meffert and it's going to actually fail and it's going
to actually fro least an exception and we need to actually handle that exception.
OK.
So that's why we put this fros just an exception here.
And inside this method we are just returning Jaison object.
So the moment that I told you that inside the curly braces as you can see here it says results 0.
And as you can see here it says inside the curly braces we have this number for 31 and this means that
the this object as you can see here I told you that curly braces here for example is starting curly
brace and this ending calibers at the end is going to be adjacent object.
OK.
So and here as you can see it says inside the curly braces we have this number for anti-violent and
it and this means that we have 31 values here in say these adjacent object.
OK this results zero adjacent object.
So now let me actually show you these adjacent values in an other way.
So in your web browser just open another tab and just put this you are in your search bar.
Jason Lane dot com and you will be guided to this page.