Michiel Van der Blonk

@blonkm (9) • Gameskool
Programmer, teacher, speedcuber, runner, living in Aruba.
why this code is showing errors and not compiling please help!!!
posted to Ask by Abhisheksharm28

I solved it for you, see https://repl.it/@blonkm/Abhisheksharm28
Your brackets aren't matching up, static wasn't used properly and a was used twice.
Make sure to always call static methods from static methods, and non-static methods from non-static methods. Then you should be ok.

$ dev spotlight12.p6: DOLLAR SIGNS WILL NOT KILL YOU. Preaching the good word of Perl 6.
posted to Announcements by katyadee

@katyadee I know but I think it's a sign of the sorry state of education. Too many are learning from mediocre programmers without a sense of 'code poetry' (readability, maintainability, loose coupling, tight cohesion). Also this wasn't meant as criticism towards Alan, he's not the only one learning programming through a crooked path. The industry has always been about quick gains and quick bucks and not the beauty and joy of programming unfortunately.

$ dev spotlight12.p6: DOLLAR SIGNS WILL NOT KILL YOU. Preaching the good word of Perl 6.
posted to Announcements by katyadee

Python should not be the one teaching you to indent. It should be done because your code is a big mess if you don't indent.

why this code is showing errors and not compiling please help!!!
posted to Ask by Abhisheksharm28

@Abhisheksharm28 I did so because Adder was part of Main and Java told me I can't reference Adder from within like that. This is a limitation of Java. So now I have instead moved Adder to its own file, and removed the static keyword. All is still working, proving you don't need static at all (except for the main method, which is called once and thus needs to be defined as static).

Embed using script tag
posted to Ask by blonkm

@timmy_i_chen sorry for the late reply but yes that is exactly what I meant.

👋✨Introduce yourself 🎉😀
posted to Announcements by amasad

I am Michiel, I am a computer skills teacher on Aruba. I use repl for my classes at school, and for my online courses at gameskool.org where I teach people programming to become game developers/designers.

I have experience in a bunch of languages, mostly C, PHP, JavaScript, BASIC, some Java, assembler, python. Lately I have taken an interest in learning a bit about neural networks.

For the rest, I am into movies, books, writing, speedcubing, running, and martial arts.

👋✨Introduce yourself 🎉😀
posted to Announcements by amasad

@hayaodeh I remember you. Perhaps you even remember me. I think I was on repl in the early days (I don't know when repl started exactly). Anyway, hi!

View your timestables!
posted to Share by iiGalacticBeast

good. you should add an option to quit the program.