Похожие чаты

Hey gais, java learner here I have a question regarding structuring

of my application
So this is how i have done it
main/java/CuloBulo.java
main/java/Dog.java
test/...

in my Dog.java file i have a class
public class Dog{}

in my CuloBulo.java

i want to use this Dog class, how do it do it properly?

2 ответов

8 просмотров

What‘s the issue? You import it and use it.

Culo-Bulo Автор вопроса
PmA
What‘s the issue? You import it and use it.

i have read that if the class is in same package , i dont have to import it

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
Did kadena deliver anything on time?
Femboi Uwu
22
Whats the deadline to convert noia into synt on erc20?
✙ Alex ✙ ✤ ∞
17
My thoughts on it: LLC growth might be signed contracts and partnerships with business companies and cash flow on LLC bank accounts. Not bad for CMO, CEO, and all the manage...
Katu
2
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
31
Why is nobody talking about this? http://wintermute.com/wintermute-expands-its-cfd-offering-with-a-unique-multi-currency-collateral-support-for-capital-efficient-trading?utm_...
Tim
11
Oh dear Tomas & the team I hope you will accept my feedback about what just happened!! Am writing this because team no longer answering me in the PM 1- Dentx has 10bill...
M E
5
@michael_p3711 in my mind there is still a usecase for interop systems that may have trust assumptions Central bank > central bank wholesale CBDC transactions... couldn't th...
Samurai
7
Conversation at a festival with a non-crpto person (not a normie by any stretch, though): * person: tell me about crypto, me: ok, the original idea is p2p sound money for the...
molecular#123 🐓
25
Карта сайта