Hire everyone in this theater you are really going to go ahead and create another Android application.
So just click on this start in your Android studio project.
OK.
Now we need to actually specify a name for our Android application so app to anyone and then click on
next year choose API 16 Android 4.1 Jelly Bean for minimum STK next Blancher activity next.
And here you can actually see what an activity name lay out.
Name title and I mean your resource name.
And then we can finish.
OK.
Now let's actually select this hell over the text here and then press on delete key on your keyboard
and then double click on this folder here.
Lay out and then click on this activity underline main that is in the mail.
And then here choose this up in Action button here and then press on delete key on your keyboard.
OK.
Now let's actually select this hell over the text here and then press on delete key on your keyboard
and then double click on this folder here lay out and then double click on this activity underline main
that is in the mail.
And then here choose this in action button here and then press until it on your keyboard.
So now let's actually go back inside this content underline made that example.
And here we can actually design the user interface of our application.
OK.
So first of all we need to actually track our linearly out vertical into these are relatively out here.
So just put it at the center of this relatively out and then we need to actually put a scroll view into
this nearly as vertical here.
So as you can see here inside these containers fall there we have a vertical scroll wheel here OK.
So just select this scroll view here and then put it inside this linearly held vertical here.
OK.
And now I want to actually track and linearly out vertical into this scroll view here.
OK so as you can see this scroll you can only accept one direct child.
So now I have a linearly held vertical inside this scroll view here.
OK.
Now let's actually track our large takes view into these linearly out vertical here.
OK.
And double click and this takes you here.
And for the text just typing here sport name.
OK.
And then press Enter key on your keyboard and actually drag and other large takes you into this linearly
of two article here and double click on this text view here and delete the text of this text view.
And for the ID just type in here TXI the sports name.
OK let's do it right.
Let's actually select this sport name takes you here again and put a colon at the end of this text here.
OK so now let's actually track and order large takes into this linearly and vertical here.
Double click on this takes you.
OK.
And for the text just type in here scores.
OK colon and drag and other large it takes you into this are linearly outwards equal here double return
it and delete the text of this text view.
And for the ID again just typing here ticks the scores.
OK.
And let's actually write another large text view into this linearly outworld equal here.
OK.
And double click on the stakes here.
And for the text just type in here scores average.
OK colon and drag and other large takes you into this linearly afterwards they call OK into this linearly
aesthetical here.
OK.
And double click on the sticks view and delete the text of this takes you here.
And for the ID just type in here TXI the scores average AK.
Now let's actually track a large takes you into this linearly as vertical here.
Double click on it.
And for the text just type in here highest score.
OK.
Colon and drag and other large takes you into this linear linearly or equal here.
Double click on it and deletes the text of this text view.
And for the ID just type in here TXI the highest score.
Ok
ok and that person enter key on your keyboard.
Now let's actually track and other large text view into this linearly of 30 quid here.
Double click on it for the text.
Just type in here the lowest score lowest score.
OK.
And press Enter key on your keyboard and now it's actually drag and other large takes you into this
linearly alphabetical here.
Double click on it delete the text of this text view and for the text and for the ID just taken here
takes the lowest score.
OK.
And then press Enter key on your keyboard that's actually select this lowest score here as you can see
and put a colon at the end of this text here.
OK.
So now the design of our use and interface is actually finished.
So now let's actually go back and say this Me activity the java file here and now is to actually delete
these lines of code that I should related to the Options menu.
OK.
And then delete this block of code that is related to the actually floating floating an action button
here.
OK.
Now we can actually put our own Ancoats here.
Now if you want to actually create another class here.
OK.
So just click on this file here new and then click on Java class OK.
And for the class name just type in here sport.
OK.
And then click on OK here.
So as you can see here this is our class sport here.
OK.
Now let's actually create two instance variables inside these sports class here.
OK.
And as you can see here I didn't instantiate these are these two instance variables.
OK.
The first instance variable is actually of types 3 and the name of this instance variable is sport name
OK.
And the second instance the above is actually of type integer array.
OK.
And the name of this instance variable is actually calls.
OK so now let's actually create a constructor here.
So as you can see here this is our constructor.
OK.
And the access modifier as you can see is public.
And the name of the current of the constructor must be this the same as the name of this class here.
As you can see and this constructiveness actually accepts two arguments.
OK as you can see that the first argument is actually of type string.
OK sports name.
And the second argument as you can see as against C is of type integers.
OK.
And the name of this argument is score's.
OK.
So now inside of this constructor we actually instantiated these two instance variables at variables
as you can see here.
OK.
This that sports name assignments operator sport name the start scores assignments operator scores.
OK so now let's actually create a set here and a getter for this sport named instance variable here.
OK.
So as you can see here these two Misfit's as you can see is actually the set here and I'll get here
for these sports named instance variable OK.
So the first Meffert as you can see said the sports name.
OK sports name as you can see it the inside of this method you are actually assigning the value of this
argument to the value of this instance variable.
OK.
And this is actually I get here and this method actually returns a value of types 3.
As you can see the value of this sport name instance value but.
OK.
Now let's actually create a method called get the minimum value.
OK.
So as you can see here this is our method.
OK.
That I actually pasted here and the access modifier of this method is public and the return type of
this method is int.
And this means that if it is going to actually return a value of type integer.
OK the name of this Meffert is actually get the minimum value and this method does not actually accept
any argument.
OK.
And inside of these as you can see these are are actually implementations inside of this method.
And here we actually created a variable of type integer lowest score and we assumed that the value that
is actually the inside of the index zero of these scores.
As you can see we declared this array in line 10 inside of this sport class here.
OK.
We assumed that the value that is actually inside of the index 0 of this Ari is actually the lowest
score.
OK.
And here we actually created a for loop here as you can see for end score scores.
As you can see it's going to iterate over the values that are that are actually inside of the scores
array.
OK.
And that is going to assign those values one by one to this score.
Valuable here.
As you can see after each execution of this for loop is going I should sign that specific value inside
of that specific index to this score variable.
And here inside of this if statement as you can see inside of the practices of this statement I created
a condition which says score less than lowest score.
OK.
So if the value of this is Caller-ID.
OK.
As you can see is less than the value of the lowest score as you can see here then our lowest score
assignment operator score.
OK.
The value of this score variable is going to be assigned to the lowest score variable here.
OK.
And at the end you are actually returning the value of this lowest score variable OK.