You can remember the meaning of 办法 with this easy mnemonic:
By no means are you allowed to do (办) anything that disobeys the law (法).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.