[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Don't get Java Arrays

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 23
Thread images: 1

File: arrays.jpg (24KB, 669x407px) Image search: [Google]
arrays.jpg
24KB, 669x407px
I am a freshman at my university and I have programming One among other classes. My math skills suck ass and so I am doing college algebra (which is too fucking easy but I'm getting there), but I think I failed my first test since high school today.

The test was mainly on arrays and 2D arrays in Java. From a guy who has been doing really well in the class so far (96/100 total grade), I feel like absolute shit for what I believe is bombing this exam (probably scored a D or a C).


Is there any hope for me, /sci/? Can I still become a programmer? Did you awesome coders ever have a hard time learning something in programming?
>>
>>8035735
Retarded CS majors belong in >>>/g/
>>
>>8035766
But I'm not only majoring in CS, anon. I was even thinking of switching over to CE, since my brother and father are computer engineers.

My granfather is an electrical engineer and my half uncle works in IT.
>>
>>8035779
>My math skills suck ass and so I am doing college algebra, but I think I failed my first test since high school today.

Yeah, no.
>>
>>8035766
>>8035797
>replying to bait
Literally apply your replies to yourselves.
>>
>>8035797
But anon I'm starting to git gud! I think I will have little to no difficulties in more advanced mathematics.

However, why the fuck are arrays so hard to understand? I know how to make one and such, but actually putting them to use is difficult.
>>
>>8035735
How is it possible to not understand arrays?
>>
>>8035735
Arrays = buckets numbered
Think like that
>>
>>8036589
Especially in Java, I mean I would understand being confused with and array of pointers to arrays of pointers in C but Java... come on
>>
Bruh, if you couldn't understand neural nets - kinda aight. Many people struggle to understand how exactly the inputs are processed (at least before implementing it).

I can't believe tho, you really tried to learn arrays and don't get it lazy fuq
>>
If you can't understand arrays in Java, you may wanna find another field. What do you not understand? A 2d array is just an array of 1d arrays.

t. CSfag
>>
>>8036850
I understand that. What I don't get is when I have to implement them. I' having the hardest fucking time creating a tic tac toe game. I created the game, but the fucking computer keeps fucking putting its 'o' where my 'x' is placed and IDK what the FUCK to do to make it stop.

>>8036822
I get it, the concept isn't hard, it's the application.
>>
>>8035735
if you werent born retarded you probably would have learned about OOP arrays on your own time in middle school like a normal person
>>
Software dev for 3 years here. Mostly java.

Yes, some concepts take time to understand. You were being lazy if you failed to comprehend it in time for the exam.
>>
>>8037949
you do remember to start indexing at 0 right?
and that lines come before columns?
what else is there to it
>>
>>8037959
The while, if and for loops that go with arrays. Its just so many variables. A student with college algebra just isn't used to this caliber of logic. All of my classmates taking this class are at Calculus 2 or more and they're having a blast.
>>
>>8036356
Mostly used with loop structures, in my humble XL experience: fill or read the array via a "Do While..." "Do Until..." or similar. Sorry, no Java experience at all.
>>
>>8038006
Work on one dimension at a time until you get more experience. Get the right results with 1 dimension (say rows) and test with various conditions. This would be a single row of the tic-tac-toe grid. When happy, add in or restore (remove 'commenting out'?) another dimension. Repeat for 3rd dim. etc.
Computer uses your tic-tac-toe cell? Ned ANOTHER array or another dimension of the same array to store which cells have been used by either computer or person(s).
Oh, I just flashed on 3D-tic-tac-toe!
>>
I mean unless you are doing linear algebra you don't need math to understand arrays.

I guess I don't really understand what you don't understand.
>>
>>8038011
>>8038010
>>8038007


I FIXED IT BOYS

I was making the board print the letter IN the do while loop, so of course the loop went on forever. I meant for it to keep generating random numbers that would go into the 2D array in order to finally find an index within the board without a letter. I tested it and it worked...

that was the dumbest fucking bug.
>>
>>8038028
Good job. Is this your first CS class?
>>
>>8035735
3/10
Sadly this is the case for many in CS
>>
>>8038045
Yeah it is my first. I wanted to be in international relations before this.

Also, I was a hardcore hater of math because I've always been terrible at it. Then again I had shit teachers and so I never really applied myself. I wanted nothing to do with math and I am very fucking good at writing.

But writing is fucking gay and makes you poor and I really like not having to write bullshit essays. Plus I grew up around computers. I love programming I just want to git gud at math already.
Thread posts: 23
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.