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

Need help w Java

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: 11
Thread images: 1

File: 1499981752658373255853.jpg (3MB, 2880x2160px) Image search: [Google]
1499981752658373255853.jpg
3MB, 2880x2160px
http://www.filehosting.org/file/details/679672/Final.class
File above. I'm a bit new to it and fucked up. Help would be appreciated.
>>
>>346424
You're telling me.

.class files are the compiled code; no-one here can do anything with them because no-one here is a Java Virtual Machine.
>>
>>346424

Please provide the.java file, not the class file.
Also choose a better hoster, not gonna use a fucking emailto download something.
>>
>>346424
holy crap, those
>if (someBooleanValue == true)
are killing me damn hard

how about you start using Switches for these damn cases? or a damn Object for the character so it can evolve progressively at least?

Damn you bro, are you starting?

>Also use bufferedReaders, those are way better than scanners
>>
>>346434
>>346475
There are fucking .class translators online, FYI
>>
>>346867

I know, java is famous for being one of the best revertable languages out there.
But why would I take the effort, the OP wants something so they also have to provide a correct file, speaking of this OP that also actually was pretty useful I am sure as it made the difference between java-source and bytecode more clear.
>>
>>346867
There are .exe reversers too.

That doesn't mean I'm going to read a bunch of machine-decompiled bytecode with no comments to help some dumbass who doesn't even know which file his source code lives in.
>>
>>346879
seeing that damn crap level there's no "which file his source lives in" because it's probably everything on the same damn file.
>>
>>346885
Pretty sure it'll still be the one ending in ".java".
>>
>>346424
>if() { } else { if() {}
Disgusting, also format keep the coding style consistent. Its probably why you fucked something up somewhere.
>>
>>346914
>>346424

You use else if / elseif /elif if the language provides it, because this lets you do

if ()
{}
else if ()
{}
else if ()
{}
else
{}

whereas if you use else {if () }, you end up with

if () {}
else {if () {}
else {if () {}
else {}
}}

Which is squiggly-bracket hell.
Thread posts: 11
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.