WEBVTT

00:00.520 --> 00:02.470
Hello, my friends, and welcome back.

00:02.470 --> 00:09.790
In this video, we'll learn how to run Java programs in Android studio Open Android studio.

00:11.490 --> 00:14.400
This is the welcome screen of Android studio.

00:14.430 --> 00:21.990
Select new project and select No activity because we're not going to create an app.

00:21.990 --> 00:26.850
We're going to create a Java program that runs Java Codes.

00:28.190 --> 00:29.240
Click next.

00:29.240 --> 00:34.790
And here you name the the application or the program.

00:35.600 --> 00:37.960
I'll name it as Java examples.

00:37.970 --> 00:41.450
This is the package name you can choose.

00:41.450 --> 00:45.380
Com dot master coding dot Java examples or whatever you want.

00:45.410 --> 00:51.470
This is the save location, the language Java and the minimum SDK.

00:51.800 --> 00:57.050
Android studio will specify the minimum SDK and it's recommended click finish.

00:59.500 --> 01:06.730
After that, we go to file and we create here a new module.

01:06.730 --> 01:15.310
So click new, new module and we have this menu.

01:16.250 --> 01:20.300
Select Java or Kotlin Library.

01:20.840 --> 01:22.430
And this is the library name.

01:22.430 --> 01:25.730
This is the package name, class, name and language Java.

01:25.760 --> 01:33.890
Don't make any changes here, just click finish and Java Library will be imported to your project.

01:33.920 --> 01:38.930
Now how to run our projects In Android studio.

01:39.050 --> 01:46.730
We have this lib folder, we open it, we can see the main and the test folder later on when we talk

01:46.730 --> 01:48.470
about unit testing.

01:48.470 --> 01:51.980
Will, Will, will work with this folder.

01:51.980 --> 01:55.670
But now I'm going to work with the main folder.

01:55.670 --> 02:01.890
You can see Java Campmaster coding dot lib and this is my class.

02:01.910 --> 02:06.620
Double click on it and here we have our class.

02:06.890 --> 02:15.620
So in this video we learned how to create and how to run projects, Java projects in Android studio.
