1
00:00:01,190 --> 00:00:06,230
So hopefully that makes sense and let's actually create another method here.

2
00:00:06,230 --> 00:00:10,080
So now let's actually paste on another method here.

3
00:00:10,430 --> 00:00:12,620
So as you can see here this is my Meffert.

4
00:00:12,620 --> 00:00:14,000
They actually paste that here.

5
00:00:14,360 --> 00:00:18,370
And again as you can see the access modifier of this method is public.

6
00:00:18,470 --> 00:00:25,910
The return type of this method is Voyt the name of this method is let's output this course to this screen

7
00:00:26,150 --> 00:00:30,310
and this method actually accepts an argument of type takes you.

8
00:00:30,320 --> 00:00:30,690
OK.

9
00:00:30,710 --> 00:00:33,180
So as you can see the name of this argument is takes.

10
00:00:33,240 --> 00:00:33,870
OK.

11
00:00:34,190 --> 00:00:40,060
And here in line 82 in say that the Smurfette are declared string variable here.

12
00:00:40,130 --> 00:00:46,400
OK as you can see our string object and the name of this variable is old tapes view value OK.

13
00:00:46,760 --> 00:00:50,000
And then here I created a for loop as you can see here.

14
00:00:50,180 --> 00:00:54,260
And this for loop inside of these practices of this for loop as you can see.

15
00:00:54,260 --> 00:01:02,040
We created an integer valuable named our game index and I assigned the value 0 to this valuable.

16
00:01:02,180 --> 00:01:04,190
And then here I create the condition.

17
00:01:04,320 --> 00:01:08,770
OK that determines how many times this group is going to be executed.

18
00:01:08,990 --> 00:01:14,750
So here I said that until the value of this game in the x variable is less than the value of the length

19
00:01:15,110 --> 00:01:22,480
of this course of this game in the x variable then you can actually execute this up for a loop here.

20
00:01:22,610 --> 00:01:29,180
And then here I specify that after each execution of this for a loop increment the value of this game

21
00:01:29,220 --> 00:01:30,890
indexed variable by 1.

22
00:01:31,190 --> 00:01:37,880
And here I created another for a loop as you can see here and here inside of this for loop as you can

23
00:01:37,880 --> 00:01:38,060
see.

24
00:01:38,090 --> 00:01:39,830
This is an enhanced for loop.

25
00:01:40,010 --> 00:01:49,620
And here I specified that I actually iterate over the values that are actually inside of the agame index.

26
00:01:49,730 --> 00:01:52,320
Actually it gave me index of these scores.

27
00:01:52,450 --> 00:01:53,900
OK either right.

28
00:01:53,930 --> 00:01:56,940
So here I actually created a variable of that integer.

29
00:01:56,960 --> 00:02:03,970
And here I want to iterate over the values that are actually inside of the game index of these scores.

30
00:02:04,190 --> 00:02:08,000
So as you know these scores are actually a two dimensional arii.

31
00:02:08,030 --> 00:02:08,620
OK.

32
00:02:08,750 --> 00:02:12,860
So here you have a arrays inside of another arey.

33
00:02:13,040 --> 00:02:17,040
So again index for example for the first time that this fall is going to be executed.

34
00:02:17,060 --> 00:02:18,360
This for loop.

35
00:02:18,410 --> 00:02:20,660
The value of the game index is zero.

36
00:02:20,780 --> 00:02:24,580
So it's going to go inside of the index zero of these three.

37
00:02:24,680 --> 00:02:26,380
OK this is a two dimensional array.

38
00:02:26,420 --> 00:02:28,820
So if you have arrays inside another a.

39
00:02:29,000 --> 00:02:33,400
So it's going to go inside of the index zero of this area which is actually another array.

40
00:02:33,650 --> 00:02:38,690
And then it's going to disvalue this variable is going to iterate over those values.

41
00:02:38,690 --> 00:02:39,310
OK.

42
00:02:39,550 --> 00:02:45,040
Over those values that are actually inside of the Aure that are inside of these two dimensional array.

43
00:02:45,080 --> 00:02:46,230
OK.

44
00:02:46,850 --> 00:02:53,720
And then here is going to actually be actually instantiated this variable all to take the view value

45
00:02:53,720 --> 00:02:55,910
assignment operator text view.

46
00:02:55,910 --> 00:03:01,310
So here I actually referred to the name of this argument that get text that was three.

47
00:03:01,430 --> 00:03:10,480
So here I actually getting the text of this text and here I am converting that value to our string value.

48
00:03:10,490 --> 00:03:14,780
And then I am assigning value to this all the text view value OK.

49
00:03:15,330 --> 00:03:19,120
And here I am actually referring to the name of this text view.

50
00:03:19,460 --> 00:03:23,290
As you can see text your argument that's a text string format.

51
00:03:23,290 --> 00:03:31,130
So here I want to actually create a string format object as you can see here and here I referred to

52
00:03:31,130 --> 00:03:36,140
the name of this string class and this format is actually a static method a class method that you are

53
00:03:36,140 --> 00:03:42,980
calling on this string class and first one inside the prentices for the first argument we need to actually

54
00:03:43,010 --> 00:03:47,700
specify the formats of are of value over a string value.

55
00:03:47,750 --> 00:03:55,520
So all text value plus here I want to concatenate this value of this value here J number person.

56
00:03:55,580 --> 00:04:02,990
It is actually an integer value or two fields two fields right justified integer value as you can see

57
00:04:03,110 --> 00:04:08,010
percent to the colon per cent. So it's going actually here.

58
00:04:08,030 --> 00:04:14,930
I am actually saying that our create this is going to refer to or to an integer value as you can see

59
00:04:14,970 --> 00:04:18,540
it is this free here means a free feels right justified.

60
00:04:18,560 --> 00:04:19,370
OK.

61
00:04:19,610 --> 00:04:24,890
And here as you can see for the for this Torchin for this person to determine if you need to actually

62
00:04:24,890 --> 00:04:26,870
create an argument of type integer.

63
00:04:26,960 --> 00:04:29,240
So again index plus 1.

64
00:04:29,270 --> 00:04:36,020
So as you can see here let me actually create a new line so that we can see what's going on here and

65
00:04:36,020 --> 00:04:42,830
here as you can see an index plus one is actually an argument for this plus percent with the talken

66
00:04:42,860 --> 00:04:43,790
as you can see here.

67
00:04:44,660 --> 00:04:50,060
And hid because the value of this game index of value is zero OK.

68
00:04:50,300 --> 00:04:55,360
It's going to increment that value so that the value of this game Index is one.

69
00:04:55,550 --> 00:05:01,820
And as you can see here I am referring to the name of this game score variable as you can say that we

70
00:05:01,820 --> 00:05:04,300
created inside of these enhanced loop.

71
00:05:04,580 --> 00:05:12,510
And here we are actually referring to the score to the specific score that is inside of that Ari.

72
00:05:12,570 --> 00:05:13,180
OK.

73
00:05:13,610 --> 00:05:18,080
And then this token is for this game score valuable here.

74
00:05:18,080 --> 00:05:19,580
OK person Fredy.

75
00:05:19,790 --> 00:05:20,580
OK.

76
00:05:21,020 --> 00:05:25,090
And we could actually write this code in an other way.

77
00:05:25,280 --> 00:05:31,760
So as you can see here we have this text view here text that said text string format.

78
00:05:31,910 --> 00:05:37,760
Ok old takes you value plus person to the call in person treaty.

79
00:05:37,960 --> 00:05:38,870
OK.

80
00:05:38,990 --> 00:05:42,920
Game index plus one game score.

81
00:05:42,920 --> 00:05:45,760
So here as you can see I created a line of code here.

82
00:05:45,800 --> 00:05:49,860
I commented out this line of code so I don't need that here.

83
00:05:49,940 --> 00:05:52,790
And I think we're done with this class.

84
00:05:52,880 --> 00:05:58,830
So let's actually go back and say this main activity that Javal find here and inside of these uncreate

85
00:05:59,120 --> 00:06:01,880
method is actually putting some lines of code here.

86
00:06:02,030 --> 00:06:07,940
So here let's actually go inside this content underlined main that example and here it's actually to

87
00:06:07,940 --> 00:06:08,680
select.

88
00:06:08,690 --> 00:06:13,130
This takes the game scores here as you can see if I double click on this text.

89
00:06:13,160 --> 00:06:17,950
I didn't actually to write the name of the idea of this text view.

90
00:06:17,960 --> 00:06:18,680
OK.

91
00:06:19,120 --> 00:06:21,310
So the game scores.

92
00:06:21,640 --> 00:06:22,210
OK.

93
00:06:22,490 --> 00:06:28,000
And then let's actually go back and say this game that job up fight as you can see.

94
00:06:28,070 --> 00:06:29,800
These are our own quotes.

95
00:06:29,990 --> 00:06:36,350
And let's actually go back and say this main activity that our main activity that I a fight here and

96
00:06:36,350 --> 00:06:38,710
then I'm going to try to paste in some lines of code here.

97
00:06:38,840 --> 00:06:42,500
So here I'm going to actually create some text view objects.

98
00:06:42,500 --> 00:06:43,020
OK.

99
00:06:43,100 --> 00:06:46,690
So as you can see here these are my view objects here.

100
00:06:47,300 --> 00:06:53,740
And as you can see for the first line of code as you can see there are actually the type of my object.

101
00:06:53,750 --> 00:06:55,860
It takes you to the game name.

102
00:06:56,090 --> 00:07:01,820
And here I am referring to this idea or that idea that takes the game name takes you to the game scores

103
00:07:02,360 --> 00:07:10,340
are that ITTL the game scores take through the game lowest score are that ideal that takes the game

104
00:07:10,370 --> 00:07:18,250
lowest score takes few takes the game highest score are that 80 that takes the game highest score takes

105
00:07:18,250 --> 00:07:26,040
real takes the game average value up scores are that ideal that makes the game average value of scores.

106
00:07:26,060 --> 00:07:32,180
OK so now let's actually pasting up some lines of code here and then I'll explain to you what's going

107
00:07:32,180 --> 00:07:32,620
on here.

108
00:07:32,630 --> 00:07:33,040
OK.

109
00:07:33,080 --> 00:07:40,730
So here I want to create an array of type integer Amante to actually a two dimensional array a multi

110
00:07:40,730 --> 00:07:42,160
dimensional array here.

111
00:07:42,500 --> 00:07:46,360
So here I just need to paste in this area here as you can see here.

112
00:07:46,520 --> 00:07:48,670
I have a two dimensional array here.

113
00:07:48,710 --> 00:07:49,420
OK.

114
00:07:49,610 --> 00:07:51,520
The type of this error is integer.

115
00:07:51,800 --> 00:07:56,930
And here I specified that I want to actually to create a two dimensional array by putting two pair of

116
00:07:56,930 --> 00:07:58,080
brackets here.

117
00:07:58,220 --> 00:08:00,780
The name of this area is game scores.

118
00:08:00,840 --> 00:08:09,620
R8 assignment operator as you can see here are we have Ariz in sight of this Adye OK.

119
00:08:10,040 --> 00:08:13,930
And as you can see we have an array and inside of this Arev we have alies.

120
00:08:14,030 --> 00:08:14,560
OK.

121
00:08:14,810 --> 00:08:18,340
So as you can see these are the values that are actually inside of this arrays.

122
00:08:18,680 --> 00:08:23,990
And now and here I'm going to paste some lines of code and then I'll explain to you what's going on

123
00:08:23,990 --> 00:08:24,850
here OK.

124
00:08:25,370 --> 00:08:29,690
So as you can say these are the lines of code that are actually the pace that here.

125
00:08:29,840 --> 00:08:36,890
First of all I created an object from this game class my game assignment operator and here I want to

126
00:08:36,890 --> 00:08:41,780
actually instantiate this object by putting this new keyboard game.

127
00:08:41,780 --> 00:08:47,300
So here the constructor that we actually created inside of this game class is actually called as you

128
00:08:47,300 --> 00:08:53,680
can see this is our constructor and this constructor is actually accepting two arguments here there

129
00:08:53,790 --> 00:08:58,850
are they to take of the first argument is strange and the data type of the second argument as you can

130
00:08:58,850 --> 00:09:01,370
see is actually a two dimensional array of type integer.

131
00:09:01,370 --> 00:09:01,970
OK.

132
00:09:02,390 --> 00:09:08,000
So here for the first argument as you can see this is the name of our game God of War.

133
00:09:08,240 --> 00:09:12,850
And the second argument is actually two dimensional at a game scores.

134
00:09:13,310 --> 00:09:20,480
And here in line 57 I referred to the name of this TXI the game name object as you can see here the

135
00:09:20,480 --> 00:09:21,250
game name.

136
00:09:21,410 --> 00:09:29,420
That's a text my game that gets name here I am actually getting the name of this game and here I actually

137
00:09:29,530 --> 00:09:31,310
in line for 88.

138
00:09:31,430 --> 00:09:36,670
I referred to the name of this object that lets outpolled discourse to the screen.

139
00:09:36,680 --> 00:09:42,920
So here I am actually calling this method that is inside of this game class on Andi's my game object

140
00:09:42,950 --> 00:09:43,980
as you can see my game.

141
00:09:44,250 --> 00:09:49,770
Let's output the scores to the screen and here this meant for I should accept an argument of type takes

142
00:09:49,770 --> 00:09:53,080
few tweaks the game scores as you can see here.

143
00:09:53,280 --> 00:09:53,860
OK.

144
00:09:54,090 --> 00:09:59,110
So this is actually here in line in actually in this game class and here as you can see this is the

145
00:09:59,110 --> 00:10:01,980
method let's output the scores to the screen.

