0:02
Hi friends, welcome to tutors funny
0:04
channel. Today I'm going to teach how to
0:08
do the Java project 5x speed
0:13
using AI. So first what I'm going to do
0:15
is I'm going to make the Java project uh
0:20
using uh simple calculator program using
0:24
AI. So what I'm going to do is I'm going
0:26
to go to the Google search uh chatg I'm
0:29
open on the chat GBT. Okay. So you first
0:32
you have to start with act as a
0:40
Okay. You have to give the prompt
0:43
correctly. Act as a Java uh developer.
0:47
uh then only the AI will be uh react
0:52
according to the prompt much which we
0:54
have given okay they act as a Java
0:56
development mean it is act as a Java
0:59
technology okay so click click okay it
1:03
is here now it is switch to Java
1:06
developer okay so everything Java
1:08
related all the task that provide now
1:10
here what I'm going to is I need I need
1:25
here you have to properly you have to
1:26
tell them it is going for the you are
1:30
going going for write the code for core
1:33
Java or uh console application or
1:36
whether you are doing uh we are code for
1:38
a swing application or java fx or
1:40
springboard or or jspo serlet everything
1:44
you have to mention Okay, Java has a
1:47
various technologies, right? So, I'm
1:50
going to do the these things for my
1:54
uh let's see console application
1:59
not only the console application
2:06
uh press enter key. Now here simply it
2:10
is here simple code Java console
2:14
application simply it will be the one
2:17
line here it is attached with the answer
2:23
okay so you can see without scanner
2:30
without scanner mean now you can see the
2:35
without scanner mean they provide the
2:40
very simple. Everything is working well.
2:44
Okay, everything is working well. Okay,
2:46
very simple uh things. It is this is the
2:49
implementation. Okay, very simple. Okay,
2:53
very simple way, right? So simply it is
2:58
it is everything here you have to assign
3:01
uh that uh 50 there is a simple example.
3:05
Okay. So which one which method command
3:06
line arg it's real console apps
3:09
interviews these all the things they
3:11
asking whether you are going for the
3:12
interviews in parameter
3:15
arg it's nothing but array so everything
3:18
so now first I'm going to copy this code
3:21
as a scanner class uh if you implement
3:23
the scanner class it starts the first
3:26
enter the first number if you enter it
3:28
goes to the next line so that it it will
3:31
be show the this variable and go to the
3:33
next Right? You you'll be able to allow
3:36
the allow to uh enter the second number.
3:39
After that both numbers are calculated
3:41
and assigned that sum it has been. Same
3:45
thing here we have in initialize to a
3:47
two integer variable. After that
3:49
calculate the total and assigned this
3:51
sum it has been the simply it is this is
3:54
the way uh this programming is working.
3:58
Now simply I'm going to create the
4:05
Java uh here Java class
4:17
this all things I'm going to remove it
4:23
the past mean once you before paste it
4:26
out how to paste it you can Understand?
4:28
Okay. So there I not paste the code. So
4:30
we have write the same thing here. Just
4:31
copy this. What is inside the class?
4:34
This class. This is a class.
4:36
Okay. This is a class. Static main is a
4:39
class. So here this class is not there.
4:42
So we have to write the class. Okay. So
4:44
give us my application.
4:47
This is not my application. My new
4:50
application is uh my new application.
4:55
Uh this is my new application. So not
5:06
no I haven't uh shall we create it
5:08
again. Okay go to file
5:16
uh here you have to write Java Java and
5:20
here don't need to select Java
5:22
application. Next here. Create main
5:24
class. You have to keep main class
5:35
Okay. Now it's okay. Now it's take care
5:37
of the code. Okay. Now this code paste
5:39
it. Okay. The addition in one bracket is
5:42
enable. So that here this is not an
5:44
error. Okay. This is you can write click
5:47
on it here. Import the uh Java util
5:51
scanner. this the UT scanner will be
5:53
under this uh Java name space. So we
5:56
have to implement that uh respective
5:58
name space there is take care of. Now
6:03
Now you'll be able to see
6:05
it ask enter the first number. Let me uh
6:09
enter 45. Press enter key. It has enter
6:11
the second number 56. Enter. Sum has
6:15
been calculated and display.
6:18
So it is professionally done. Okay. So
6:22
this code is working professionally.
6:24
Okay. When you Okay. So same time I'm
6:27
going to remove this one second code.
6:29
Okay. How easy is it?
6:32
Now again I'm going to go to
6:35
run the code of this.
6:38
Okay. Copy this. Paste it here. Now you
6:42
can see first you have to initialize the
6:44
variable 50. It assigned to this. This
6:46
is 25 assigned to this. Both values are
6:49
calculated and assigned to sum. Total
6:51
has been calculated in display. We have
6:55
run the code. Sum has been printed has
6:58
been printed as 40. Okay. Thank you for
7:00
watching. It's how they have five X
7:03
speed for Java code using AI. Thank you