Java Tutorial 25 - Importing Classes from Other Packages

preview_player
Показать описание
This video is intended for students of King Faisal University - College of Computer Science and Information Technology (CCSIT).

Students will learn how to import classes from other packages in Java.
Рекомендации по теме
Комментарии
Автор

thanks a lot i find it usefull and clear

monawat_ABDO
Автор

Simple, clear and precise. Justify the title of video completely.

pundirvinay
Автор

Great video!! I was understanding why my project failed. Now I got it. I lack of adding class in library. thanks!!

werlon
Автор

Very good tutorial! It solved my problem. Thanks.

shixichen
Автор

very clear voice, and i understand it. it worksss <3

mohsencadir
Автор

Great vedio ....i was scrolling through different vedios and applying but still there was error but .you do it in a very simple wayy
Here a question that ..can we import the firstproject without going through library there any other method .?

husnainkhan
Автор

Very valuable tutorial. Thanks for it.

tanmoyroy
Автор

Actually there are 2 packages here (firstproject and secondproject) and the class in firstproject called OddOrEven was instantiated in secondproject. Please remember that FirstProject and SecondProject are also classes. But you are also correct to say that we used one package (firstproject) that has 2 classes (FirstProject and OddOrEven). Happy programming Naruto! :)

KFUccsit
Автор

if the class is under default package, , then it shows solution(not jumps from one frame to another)

vibekanandabhaktiary
Автор

Thanks for this! I also wanted to ask if it is normally how it is done? or is there another way it is supposed to be done?

Rasputin
Автор

Ahh, thank you, finally i understand it

ericksuryadinata
Автор

Hi Naruto! You are right to say that and I'm sorry for it. There is only one class (OddOrEven) that was imported from the package firstproject (which contains a class called FirstProject) into another package (secondproject) that contains a class called SecondProject. Both FirstProject and SecondProejct were able to instantiate the class OddOrEven even if it was written in FirstProject.

KFUccsit
Автор

thanks what if the package that i want to import is in different folder. for example first project is in c: drive and second project in d: drive then how to import package from first to second

srinidhiskanda
Автор

please reply quickly threre is an error that i can not resolve i create two pachages thsese two pachages are related and how can we acess private member of the other pachage by importing to the other pachage

yemanegebreyohans
Автор

Shall give RMI source code for Dictionary?

ashagireadinew
Автор

Is curiously, my name is Abdías, your first proyect is called similar

abdiaslabrador
Автор

Can someone tell me how to import in eclipse? I see no buttons as shown in the video :S

ChrissPBacon-mohy
Автор

if not mistaken, , u using one package.. and two class? is it correct sir?

ahmadsolehin
Автор

for anyone who is doing it this way and is using the default package i suggest creating a new package and moving all your classes to that package then do it this way. LOL forgot i was using the default package therefore at the beginning I was unable to import.

Importunity
Автор

im sorry sir, , i get confused by the title..

ahmadsolehin