class Persoana {
// Instante variabile
String nume;
int varsta;
// Clasele pot contine
// 1. Date
// 2. Metode
void vorbeste() {
for(int i=0; i<3; i++) {
System.out.println("Numele meu este: " + nume + " si eu am " + varsta + " de ani ");
}
}
void spuneBuna() {
System.out.println("Buna!");
}
}
public class App {
public static void main(String[] args) {
// Creaza un obiect al clasei Persoana
Persoana persoana1 = new Persoana();
persoana1.nume = "Valentin Popescu";
persoana1.varsta = 30;
persoana1.vorbeste();
persoana1.spuneBuna();
// Creaza al doilea obiect al clasei Persoana
Persoana persoana2 = new Persoana();
persoana2.nume = "Ana Maria";
persoana2.varsta = 20;
persoana2.vorbeste();
persoana2.spuneBuna();
System.out.println(persoana1.nume);
System.out.println(persoana2.nume);
}
}
Output:
Numele meu este: Valentin Popescu si eu am 30 de ani
Numele meu este: Valentin Popescu si eu am 30 de ani
Numele meu este: Valentin Popescu si eu am 30 de ani
Buna!
Numele meu este: Ana Maria si eu am 20 de ani
Numele meu este: Ana Maria si eu am 20 de ani
Numele meu este: Ana Maria si eu am 20 de ani
Buna!
Valentin Popescu
Ana Maria
metformin weight loss
amoxicillin without rx: amoxicillin 500mg price in canada – how to buy amoxicillin online
http://amoxil.cheap/# order amoxicillin uk
https://amoxil.cheap/# amoxicillin azithromycin
При монтаже материалы для фасада необходимо следовать рекомендациям производителя.
amoxicillin without rx prescription for amoxicillin where to get amoxicillin over the counter
stromectol usa minocin 50 mg for scabies ivermectin 3mg price
licensed crypto casino 2024 https://medium.com/@passeu/coins-game-licensed-crypto-casino-2024-64b8fb51baac
stromectol ivermectin: stromectol for sale – stromectol cream
lasix 100 mg tablet: Buy Furosemide – lasix 20 mg
https://furosemide.guru/# lasix
http://amoxil.cheap/# amoxil pharmacy
mexican border pharmacies shipping to usa medication from mexico pharmacy mexican online pharmacies prescription drugs
buying prescription drugs in mexico online best online pharmacies in mexico pharmacies in mexico that ship to usa
pharmacies in mexico that ship to usa purple pharmacy mexico price list mexican online pharmacies prescription drugs
Your blog is like a ray of sunshine on a cloudy day – uplifting and inspiring. Sending love from Asheville!
mexico pharmacy mexican pharmaceuticals online buying prescription drugs in mexico online
https://mexicanph.com/# reputable mexican pharmacies online
medicine in mexico pharmacies
http://weldzone.info/forum/vistavki/3731-dzhaz-ritmy-svobody-i-improvizatsii#6670
https://thewillistree.info/genealogy/wiki/User:FrancescoLester
buying from online mexican pharmacy pharmacies in mexico that ship to usa п»їbest mexican online pharmacies
mexico pharmacies prescription drugs mexican pharmacy medication from mexico pharmacy
http://danceway74.ru/users/2244
Наша команда специалистов по SEO-продвижению работает на результат. Забудьте о конкурентах – доминируйте в поисковых результатах.
Наша команда профессионалов создаст индивидуальную стратегию SEO-продвижения, соответствующую уникальным потребностям вашего бизнеса.
reputable mexican pharmacies online mexican drugstore online mexican online pharmacies prescription drugs
purple pharmacy mexico price list mexican pharmacy medication from mexico pharmacy
buying from online mexican pharmacy purple pharmacy mexico price list mexico drug stores pharmacies
mexico drug stores pharmacies mexican drugstore online mexico drug stores pharmacies
mexican rx online mexico drug stores pharmacies buying from online mexican pharmacy
http://www.mamalipetsk.ru/index.php?name=forums&op=showtopic&id=25353
licensed crypto casino 2024 https://medium.com/@passeu/casinobit-licensed-crypto-casino-2024-9443130e5dde
https://mexicanph.com/# mexican online pharmacies prescription drugs
mexican border pharmacies shipping to usa
buying from online mexican pharmacy mexican mail order pharmacies buying prescription drugs in mexico
mexican rx online reputable mexican pharmacies online mexican pharmacy
http://wiki.intradition.ru/index.php/%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D0%B0%D1%83%D0%B4%D0%B8%D0%BE%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%BE%D0%B2:_%D0%9E%D1%82_%D0%B2%D0%B8%D0%BD%D0%B8%D0%BB%D0%B0_%D0%B4%D0%BE_%D1%81%D1%82%D1%80%D0%B8%D0%BC%D0%B8%D0%BD%D0%B3%D0%B0
https://library.kemu.ac.ke/kemuwiki/index.php/Mp3bit.pw_2
buying from online mexican pharmacy mexico pharmacy buying prescription drugs in mexico online
medicine in mexico pharmacies mexico drug stores pharmacies pharmacies in mexico that ship to usa
saungsantoso.com
그동안 조용히 그의 말을 듣고 있던 팡지판이 갑자기 얼굴을 붉히는데…
mexican rx online п»їbest mexican online pharmacies medication from mexico pharmacy
pharmacies in mexico that ship to usa mexico pharmacy п»їbest mexican online pharmacies
mexico drug stores pharmacies reputable mexican pharmacies online mexican rx online
purple pharmacy mexico price list best online pharmacies in mexico mexico drug stores pharmacies
mexican border pharmacies shipping to usa mexico pharmacies prescription drugs mexican pharmacy
https://mirraspb.ru/forum/user/53679/
medicine in mexico pharmacies mexican border pharmacies shipping to usa reputable mexican pharmacies online
mexican drugstore online mexican online pharmacies prescription drugs pharmacies in mexico that ship to usa
https://mexicanph.shop/# mexican drugstore online
buying prescription drugs in mexico
best online pharmacies in mexico mexico pharmacy mexican pharmaceuticals online