Double layers and ion-acoustic waves are investigated by using a one-dimensional electrostatic particle-in-cell simulation code. Our results show that double layers can be formed even when the drift velocity between electrons and ions is less than the electron thermal velocity. Electron and ion density depressions were clearly seen. Electrons gradually developed a distribu- tion comprising both background and beam components. In fact, as the initial electron-ion drift velocity was less than the electron thermal velocity, intense ion-acoustic waves could be found only at the places where the electron beam was located, suggesting that they are excited by the self-consistently developed electron beam. Besides the Langmuir waves and ion-acoustic waves, the beam mode excited by electron beams produced in our simulation has been clearly found.