Java

Sve o kompjuterima

Moderator: Rudolph

Post Reply
User avatar
Amaya
Poneki mu pročitamo
Poneki mu pročitamo
Reactions: 1068
Posts: 585
Joined: 02 Jul 2019, 00:43
Mood:
Zodiac:
Status: Offline

Re: Java za početnike

Post by Amaya » 11 Jul 2019, 20:48

0
I am not this hair, I am not this skin...I am the soul that lives within - Rumi

User avatar
ElTriconi
Inventar foruma
Inventar foruma
Reactions: 5470
Posts: 7724
Joined: 24 Mar 2019, 14:13
Mood:
Status: Online

Re: Java za početnike

Post by ElTriconi » 11 Jul 2019, 20:48

rethna wrote:
11 Jul 2019, 20:47
Nije ovo bas mjesto za pocetnike :hm
Vise mutevelija zna o javi od mene bolan, ja sam pocetnik tudenak :oo
0
Nu!

User avatar
Mutevelija
Energetski vampir
Energetski vampir
Reactions: 9790
Posts: 60126
Joined: 28 Nov 2015, 20:04
Location: Left 28 Jul 2019, 20:26
Status: Offline

Re: Java za početnike

Post by Mutevelija » 11 Jul 2019, 20:50

ElTriconi wrote:
11 Jul 2019, 20:47
Sta je nejasno kod bmia? Nadjes formulu i vidis koliko ti varijabli treba i udaris, ha ja.
Haj nebitno sad , ali otprilike nisam nikad bio dobar u postavljanju zzadataka i tu ima matematike.
0
You've got to know when to hold 'em.
Know when to fold 'em.
Know when to walk away
And know when to run.

User avatar
ElTriconi
Inventar foruma
Inventar foruma
Reactions: 5470
Posts: 7724
Joined: 24 Mar 2019, 14:13
Mood:
Status: Online

Re: Java za početnike

Post by ElTriconi » 11 Jul 2019, 20:58

Mute evo ti logika kako se radi bmi.

Image

Vidis imaju tri varijable i jedna konstanta, znaci trebo bi imat tri vaeijable u programu. Evo po c algoritam

float bmi, weight, height;

scanf("%d%d", &weight, &height); // unos

bmi = weight / (height * height) * 703; // racuna

Dalje ide if i to ostalo.
0
Nu!

User avatar
Mutevelija
Energetski vampir
Energetski vampir
Reactions: 9790
Posts: 60126
Joined: 28 Nov 2015, 20:04
Location: Left 28 Jul 2019, 20:26
Status: Offline

Re: Java za početnike

Post by Mutevelija » 11 Jul 2019, 21:14

Ne ide tako scanner u javi


Nisi shvatio sta ne kontam bmi je samo primjer.

Ne znam postavit zadatak :cudi ako je malo slozeniji valjda ce se to moci ispraksat il izvjezbat
0
You've got to know when to hold 'em.
Know when to fold 'em.
Know when to walk away
And know when to run.

User avatar
rethna
Forum [Bot]
Forum [Bot]
Reactions: 3845
Posts: 25889
Joined: 09 Oct 2014, 01:51
Zodiac:
Status: Offline

Re: Java za početnike

Post by rethna » 11 Jul 2019, 21:37

Moci ce, sintaksa je najlaksa, logiku izostravas. Ne odustaj i ne obeshrabruj se.
1
1 Image
Question everything.

User avatar
Melek
Deer Hunter
Deer Hunter
Reactions: 3344
Posts: 13280
Joined: 20 Jun 2013, 23:18
Status: Offline

Re: Java za početnike

Post by Melek » 11 Jul 2019, 21:50

Amaya wrote:
11 Jul 2019, 20:44
Println u c#
System.out.printline u Javi
Sintaksa se razlikuje, ali je logika dosta slična i princip isto. Znaš da su Java i .net konkurencija
Konkurencija u smislu frameworks/vm jesu jedino u okviru Microsoft platformi, inače je java vm daleko fleksibilnija i ima je svugdje. JRE i .Net dva su svijeta različita, ali su programski jezici Java(2) i C# slični i oba vuku osnovnu sintaksu iz C..
0
Etežal!

User avatar
Amaya
Poneki mu pročitamo
Poneki mu pročitamo
Reactions: 1068
Posts: 585
Joined: 02 Jul 2019, 00:43
Mood:
Zodiac:
Status: Offline

Re: Java za početnike

Post by Amaya » 11 Jul 2019, 21:51

Ja sam učila c# i .net. A onda su me iz skolskih klupa bacili na projekat u Javi. Sve znam i ništa ne znam, eto...
Nadam se da ću i ja ovdje ponešto od vas profesionalaca naučiti
0
I am not this hair, I am not this skin...I am the soul that lives within - Rumi

User avatar
Melek
Deer Hunter
Deer Hunter
Reactions: 3344
Posts: 13280
Joined: 20 Jun 2013, 23:18
Status: Offline

Re: Java za početnike

Post by Melek » 11 Jul 2019, 21:57

Ja sam imao projekat da napravim klon igrice Space Invaders u Javi 2 na kursu, kad sam sa tim dilao. I to prvo tražili opsežnu dokumentaciju da izrodim, algoritam-dijagram i UML-dijagram itd pa tek onda kodovanje. I to da se primijene i odgovarajuće klase za objekte i inheritance i polimorfism i multi-threading. I zamisli, fercera. Ima i nivoe težine i onaj matični svemirski brod i lasere, colision detection, exception handling, ojha :cvike
2
2 Image
Etežal!

User avatar
Melek
Deer Hunter
Deer Hunter
Reactions: 3344
Posts: 13280
Joined: 20 Jun 2013, 23:18
Status: Offline

Re: Java za početnike

Post by Melek » 11 Jul 2019, 21:59

A profesionalac se tu ne može biti, sve zavisi od projekta do projekta.
0
Etežal!

User avatar
Amaya
Poneki mu pročitamo
Poneki mu pročitamo
Reactions: 1068
Posts: 585
Joined: 02 Jul 2019, 00:43
Mood:
Zodiac:
Status: Offline

Re: Java za početnike

Post by Amaya » 11 Jul 2019, 22:01

Ne zezaj ba, nemoj to ovdje pisati, ovo je za pocetnike, demotivisat ce se :)
0
I am not this hair, I am not this skin...I am the soul that lives within - Rumi

User avatar
KREMENAC
Aktivni forumaš
Aktivni forumaš
Reactions: 1918
Posts: 2426
Joined: 27 Jul 2018, 02:43
Status: Offline

Re: Java za početnike

Post by KREMENAC » 11 Jul 2019, 22:17

ElTriconi wrote:
11 Jul 2019, 20:28
Mutevelija wrote:
11 Jul 2019, 20:27
Samo algoritmi su probelm malo veci.

Moram priznati ima ovde i matematike.

Kad postavi zadatak pa ga sad preformuliši.
Kakvi logaritmi, kae ti napravi klasu jabuka i klasu krusaka i dodjeli jabuke kruskama :D.

Neatu puno mudrosti :valja
ne mogu se jabuke i kruske sabirat :sok :lupa
0

User avatar
KREMENAC
Aktivni forumaš
Aktivni forumaš
Reactions: 1918
Posts: 2426
Joined: 27 Jul 2018, 02:43
Status: Offline

Re: Java za početnike

Post by KREMENAC » 11 Jul 2019, 22:34

Amaya wrote:
11 Jul 2019, 22:01
Ne zezaj ba, nemoj to ovdje pisati, ovo je za pocetnike, demotivisat ce se :)
pa pocetnici i treba da uce algoritme ... ta nece bit jalan programeri
0

User avatar
lejlamo
Inventar foruma
Inventar foruma
Reactions: 12125
Posts: 8934
Joined: 23 Feb 2018, 18:17
Mood:
Zodiac:
Status: Online

Re: Java za početnike

Post by lejlamo » 11 Jul 2019, 22:49

Mene samo zanima kako vam kvadrat ima različitu dužinu od širine.
1
1 Image
seku ti granu, a ti sediš...
Image

User avatar
Amaya
Poneki mu pročitamo
Poneki mu pročitamo
Reactions: 1068
Posts: 585
Joined: 02 Jul 2019, 00:43
Mood:
Zodiac:
Status: Offline

Re: Java za početnike

Post by Amaya » 11 Jul 2019, 23:14

Kad dobijes parametre, ne ispitujes, vec kodiras kako ti se kaze :)
0
I am not this hair, I am not this skin...I am the soul that lives within - Rumi

User avatar
KREMENAC
Aktivni forumaš
Aktivni forumaš
Reactions: 1918
Posts: 2426
Joined: 27 Jul 2018, 02:43
Status: Offline

Re: Java za početnike

Post by KREMENAC » 11 Jul 2019, 23:20

ma reko ti ja: petljaju
u nakvu petlju stave:
x=0
x=x+1
i kazu more
:valja
1
1 Image

User avatar
Mutevelija
Energetski vampir
Energetski vampir
Reactions: 9790
Posts: 60126
Joined: 28 Nov 2015, 20:04
Location: Left 28 Jul 2019, 20:26
Status: Offline

Re: Java za početnike

Post by Mutevelija » 11 Jul 2019, 23:29

A modulov je najjači umjesto da računa postotke on računa koliko imaš ostatka

Npr

10%3 =1

10%3'= 3 ali ti je kusur ostatak 1
Znaci 10 modulo 3 je jedan
0
You've got to know when to hold 'em.
Know when to fold 'em.
Know when to walk away
And know when to run.

User avatar
Mutevelija
Energetski vampir
Energetski vampir
Reactions: 9790
Posts: 60126
Joined: 28 Nov 2015, 20:04
Location: Left 28 Jul 2019, 20:26
Status: Offline

Re: Java za početnike

Post by Mutevelija » 11 Jul 2019, 23:30

Amaya wrote:
11 Jul 2019, 23:14
Kad dobijes parametre, ne ispitujes, vec kodiras kako ti se kaze :)
Nije to nista mi smo kocku izracunavalai a * b površinu umjesto a na kvadrat
0
You've got to know when to hold 'em.
Know when to fold 'em.
Know when to walk away
And know when to run.

User avatar
Mutevelija
Energetski vampir
Energetski vampir
Reactions: 9790
Posts: 60126
Joined: 28 Nov 2015, 20:04
Location: Left 28 Jul 2019, 20:26
Status: Offline

Re: Java za početnike

Post by Mutevelija » 11 Jul 2019, 23:30

lejlamo wrote:
11 Jul 2019, 22:49
Mene samo zanima kako vam kvadrat ima različitu dužinu od širine.
Testiram tebe da li me držiš na ignoretu :oo
0
You've got to know when to hold 'em.
Know when to fold 'em.
Know when to walk away
And know when to run.

User avatar
ElTriconi
Inventar foruma
Inventar foruma
Reactions: 5470
Posts: 7724
Joined: 24 Mar 2019, 14:13
Mood:
Status: Online

Re: Java za početnike

Post by ElTriconi » 12 Jul 2019, 05:46

KREMENAC wrote:
11 Jul 2019, 22:17
ElTriconi wrote:
11 Jul 2019, 20:28


Kakvi logaritmi, kae ti napravi klasu jabuka i klasu krusaka i dodjeli jabuke kruskama :D.

Neatu puno mudrosti :valja
ne mogu se jabuke i kruske sabirat :sok :lupa
Logicno, ali moras to u klasama odradit :D.
0
Nu!

Post Reply

Return to “Hardware & Software”

Who is online

Users browsing this forum: No registered users and 1 guest