As JoeTaxpayer rightly points out, student loan debt is not dischargeable in bankruptcy (except for cases of extreme hardship) so that's out of the question.
The process your friend seems to think will work involves the statute of limitations which limits the time a creditor has to attempt collection of a debt. The general strategy (for lack of a better word) is to ignore the debt completely (what could go wrong) until that statute of limitations passes and the creditor is "time barred" from attempting collection. Once the debt is no longer collectible and has been written off you play the waiting game for the record to fall off your credit report.
There's no statute of limitations applicable to student loans so this process doesn't work.
Additionally, this process is difficult to pull off anyway as there are a number of ways that responding to a collection attempt on the debt will reset the timer on the statute of limitations.