[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

  1. Home
  2. Board: /g/ - Technology
  3. Reading: Code Help

Thread replies: 8
Thread images: 2

File: Menger Sponger Fault.png (119KB, 1162x920px) Image search: [Google] [Yandex] [Bing]
Menger Sponger Fault.png
119KB, 1162x920px
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 (142KB, 1162x920px) Image search: [Google] [Yandex] [Bing]
1464495461175.png
142KB, 1162x920px
>>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
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK