In this work, a simple, stable and switchable single- or dual-wavelength fiber laser configuration is proposed and demonstrated. The cavity laser is comprised of two FBGs, encompassing a short length of highly-doped Er-fiber, to create effectively single- or dual-wavelength fiber lasers. The laser performance in terms of the laser output power and laser stability is experimentally investigated in this paper. Application for temperature measurement is also shown.