This site requires JavaScript, please enable it in your browser!
Greenfoot back
ZiadTheVortex
ZiadTheVortex wrote ...

2020/3/3

help me please..about how to handle about this error

ZiadTheVortex ZiadTheVortex

2020/3/3

#
import greenfoot.*; // imports Actor, World, Greenfoot, GreenfootImage import java.util.Random; public class JumpNRun extends World { GreenfootSound backgroundMusic = new GreenfootSound("Backsound.mp3"); public MyWorld(); // This part error it say "invalid method declaration; return type required" { super(600, 400, 1); backgroundMusic.playLoop(); }
footpickle footpickle

2020/3/3

#
What is the error?
footpickle footpickle

2020/3/3

#
Hmmm... yeah I dunno what the issue is. I'm dumb.
danpost danpost

2020/3/3

#
Remove the semi-colon at the end of the problem line.
You need to login to post a reply.