PORTLAND, Ore. (AP) — A police detective says a man accused of robbing a Portland bank told investigators he was having a hard time controlling a heroin addiction so he decided to put lessons learned in prison to good use.

Detective Darren Posey wrote in a complaint filed in federal court that Dennis C. McDonald shared with officers what he learned from other inmates about "what to ask when conducting a robbery."

The Oregonian reports (http://is.gd/7nyeDC ) that during a court hearing Tuesday, McDonald was ordered detained as a flight risk. It was not immediately clear whether he had a lawyer.

He was arrested after a U.S. Bank branch in southeast Portland was robbed on Monday.

Police stopped McDonald after noticing a man walking in a park in 80-degree temperatures wearing a motorcycle helmet and jacket, jeans and boots. No motorcycle was nearby. Court documents say $940 in cash was found in his backpack, along with a crumpled-up demand note that read, "No marked bills, no transmitters, no dye packs, I will kill everybody!"

___

Information from: The Oregonian, http://www.oregonlive.com