[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]

Java - where is the mistake?

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: 16
Thread images: 2

File: 45646.png (16KB, 726x564px) Image search: [Google]
45646.png
16KB, 726x564px
Java - where is the mistake?
>>
looking at you in the mirror
>>
Missing semicolon; you never closed main

Add one on line 5, remove one at the end
>>
>>59724659
Ah OK, thanks mate
>>
>>59724623
Nigga you got all sorts of shit wrong.

First copy and paste your function car outside of main you mongoloid. In no language that I know of is this good practice at all.

Then use better variable names instead of just 1 letter variables.
>>
>>59724659
>semicolon
Fuck you for this typo and making me stare at this image for 60 seconds trying to see wtf you're talking about desu senpai
>>
>>59724623
>Java
there's the mistake.
>>
Wtf this is just plain wrong! A method inside the main method, boy you're really stupid... Change sex because as a man you're useless
>>
>>59724623
you put a method inside main, which is also a method
>>
>>59724623
You're inception method is the problem. This is the dumbest shit I've ever seen. You're calling for a non-anonymous method that is defined within the same block.
>>
>>59724659
>semicolon;
kys pajeet
>>
>>59725007
this
>>
>>59724623
your existence
>>
>>59724825
this guy's got it.

Your car method, and any other method for that matter, needs to be declared outside of main method.
>>
File: file.png (1MB, 1300x866px) Image search: [Google]
file.png
1MB, 1300x866px
>>59724623
>Function inside of main
>All inside of a class

Ay dios mio.
>>
>>59724623
car returns the car of a cons.
Thread posts: 16
Thread images: 2


[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.