The "Lucky Bamboo" is not a bamboo, but the stalks of a variety of dracaena. Someone came up with the "bamboo" analogy 'cause the stalks themselves look like bamboo & can be trained in all kindsa contorted shapes...it's all marketing!!
If the stalks sit in water w/o rooting, they will turn yellow & rot.
The best thing to do would be to stick the stalks in a pot of potting soil & don't overwater. They will root in, start shooting new leaves, & eventually fill into a nice houseplant that doesn't need a lotta water or light.