1
00:00:00,540 --> 00:00:06,000
Hello this is Martez awkward and it is actually all we're going to actually work on this clear about

2
00:00:06,000 --> 00:00:06,460
it.

3
00:00:06,720 --> 00:00:12,600
So let's go inside our country a little class and before you incur the price of this calculator class

4
00:00:12,600 --> 00:00:14,070
we're going to create a method.

5
00:00:14,070 --> 00:00:22,520
So private voyde and the name of that effort is going to be clear tacts.

6
00:00:22,590 --> 00:00:27,720
So I want to put apart apprentices here and I want to open and close this method by using these curly

7
00:00:27,720 --> 00:00:28,560
braces.

8
00:00:28,920 --> 00:00:36,660
So here first of all we said that this number at liff assignment operator an interesting value is Thring

9
00:00:36,660 --> 00:00:38,490
number and right.

10
00:00:38,640 --> 00:00:46,620
Assignment operator two coats empty string where you get ready to assign a number to zero to the calculations

11
00:00:46,620 --> 00:00:47,950
result variable.

12
00:00:49,620 --> 00:00:56,370
And then semicolon for the current number we are going to also assign an interesting value.

13
00:00:56,570 --> 00:01:07,210
And for the current OPERATOR You're going to assign the value to this variable for that it still results

14
00:01:07,540 --> 00:01:08,430
takes you.

15
00:01:08,490 --> 00:01:10,900
You are going to set a value number zero.

16
00:01:11,910 --> 00:01:13,450
As the initial value.

17
00:01:14,090 --> 00:01:22,140
And for the calculations valuable for the calculations string variable you're likely to assign an empty

18
00:01:22,140 --> 00:01:23,140
string value.

19
00:01:23,380 --> 00:01:29,500
And for that use the calculations takes you are going to assigned an empty string that you all for example

20
00:01:29,510 --> 00:01:32,400
as we can just put number 0 here.

21
00:01:32,400 --> 00:01:33,390
That's it.

22
00:01:33,390 --> 00:01:41,550
So now of we can actually call the Smurfette from the PTEN clear case statement inside our switch statement.

23
00:01:41,580 --> 00:01:43,250
So let's scroll to the top.

24
00:01:44,480 --> 00:01:46,750
And here we have a number.

25
00:01:46,910 --> 00:01:48,600
So let's scroll down here.

26
00:01:49,770 --> 00:01:55,110
We have this pretty clear case became clear so we can see a clear path.

27
00:01:55,260 --> 00:01:56,010
That's it.

28
00:01:56,190 --> 00:01:58,190
Let's run the app.

29
00:01:58,320 --> 00:01:59,910
Let me show you the emulator.

30
00:01:59,910 --> 00:02:10,660
So for example Number five multiplied by two equal to number 10 plus six equal to 16.

31
00:02:10,910 --> 00:02:13,520
So I want to for example clear everything.

32
00:02:13,520 --> 00:02:23,610
Now everything is cleared and here we can see for example Number five multiplied by two equal number

33
00:02:23,610 --> 00:02:24,290
10.

34
00:02:24,450 --> 00:02:25,020
Right.

35
00:02:25,020 --> 00:02:29,610
So now you can see that the clear button is actually executed.

36
00:02:29,910 --> 00:02:38,100
But here when I clicked on the XTi clear you can see that inside this takes the calculations there is

37
00:02:38,130 --> 00:02:42,500
no actually number zero here.

38
00:02:42,510 --> 00:02:42,980
Right.

39
00:02:43,140 --> 00:02:48,970
And that's because of this on my face here because let's take a look at this ugly method here.

40
00:02:49,080 --> 00:02:52,580
At the end of this Arncliffe effort after this statement is executed.

41
00:02:52,780 --> 00:02:57,550
We're saying he makes the calculations that said text calculations 3.

42
00:02:57,960 --> 00:03:05,720
So before we actually assign a number to zero as the value of this takes you here we are actually the

43
00:03:06,020 --> 00:03:08,090
MT-NW the value of the calculation is stunning.

44
00:03:08,090 --> 00:03:09,690
So let me show you my friend.

45
00:03:09,930 --> 00:03:12,720
You can see that we assigned an empty string value to this value.

46
00:03:12,760 --> 00:03:15,540
So that's why you can see this number zero here.

47
00:03:15,690 --> 00:03:18,790
So let me actually did it this number zero here as the value of the set.

48
00:03:18,810 --> 00:03:25,950
And that's just a sign an empty string value as the value of this text takes you here.

49
00:03:26,250 --> 00:03:33,520
And if you want to you can just delete this line of code because we just set the value of the calculation

50
00:03:33,520 --> 00:03:36,960
string as the value of the ticks the calculations are in.

51
00:03:36,990 --> 00:03:42,740
Inside the unclear method regardless of the switch statement so we can just delete this line of code.

52
00:03:42,960 --> 00:03:48,330
And if you want to put number 0 as the value of that is the calculations we can just assign the value

53
00:03:48,330 --> 00:03:52,050
number zero inside the two codes to these valuable calculations.

54
00:03:52,320 --> 00:03:54,610
So let me show you the applicant.

55
00:03:54,700 --> 00:03:57,750
Let's run the at now.

56
00:03:58,280 --> 00:04:07,370
For example you can see number zero he has a five multiplied by free equal and plus two equals.

57
00:04:07,370 --> 00:04:08,700
So let's get the clear.

58
00:04:08,720 --> 00:04:10,130
Now you can see this clear within here.

59
00:04:10,130 --> 00:04:23,210
So again eight multiplied by two equals Sixteen plus four equal to any divided by two equal or ten minus

60
00:04:23,360 --> 00:04:29,390
five equal five multiplied by four equal to any.

61
00:04:29,390 --> 00:04:34,280
So you can see that our calculator application works perfectly.

62
00:04:34,280 --> 00:04:36,790
So that's it that's enough for this application.

63
00:04:36,800 --> 00:04:44,060
And I think this was the last application that I actually uploaded to this course because of we cannot

64
00:04:44,090 --> 00:04:50,550
add more than five hundred and fifty lectures to the course and we already reached that limitation.

65
00:04:50,960 --> 00:04:58,910
So if you have any questions about actually creating Android applications about anything in Android

66
00:04:59,030 --> 00:05:05,870
regarding creating Android applications or Java please post the discussion in the course and then I

67
00:05:05,870 --> 00:05:08,370
will do my best to answer all of your questions.

68
00:05:08,540 --> 00:05:14,160
Thanks very much for watching again and hope to see you again bye.

