[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Code Help
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 8
Thread images: 2
File: Menger Sponger Fault.png (119 KB, 1162x920) Image search: [Google]
Menger Sponger Fault.png
119 KB, 1162x920
Hey, i'm a novice, self-taught coder trying to write a program in Blue Jay to generate a Menger Sponge fractal. it this point in the process (pic related), I should have a white cube against a black background, rotating at rate "a", but when I complied the script, I received the error shown at the bottom. How do I fix this?
>>
>>54795133
Only variable declarations and method definitions belong in a class.
>>
3 closing curly braces, 2 opening curly braces
>>
>>54795184
Surprised his ide didn't catch that.
>>
>>54795242

>BlueJ
>IDE

what a meme
>>
File: 1464495461175.png (142 KB, 1162x920) Image search: [Google]
1464495461175.png
142 KB, 1162x920
>>54795184
>>54795242
The braces are fine.

>>54795133
This is just a guess, but did you start with Processing before moving on to BlueJ? All your methods seem more akin to Processing, but Processing has a built in graphics library. In BlueJ, and most other Java IDEs, you'll need to import some sort of graphics library. This means that none of the methods you're invoking do anything which is why you are getting an error.
>>
Java isn't an scripting language, you have to put the translate etc.. inside a method
>>
>java
>blueJ
>thinking you'll ever understand programming like this
Learn C you fag.
Thread replies: 8
Thread images: 2

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.