In Chapter 2 of The Outsiders, the author, S.E. Hinton, foreshadows that Johnny will use his switch blade knife to kill a Soc in Chapter 4 during a conversation between Ponyboy and a Soc girl, named Cherry Valance, who he meets at The Dingo Drive-In. This occurs when Cherry asks Ponyboy about Johnny, and says “he’s been hurt bad sometime, hasn’t he?” (Hinton 31), to which Ponyboy replies with the story of how Johnny was jumped by a group of four Socs in a “blue Mustang” (Hinton 33) almost four months earlier. He goes on to tell Cherry how since that day Johnny “carried in his back pocket a six-inch switch blade” (Hinton 34). Ponyboy then tells Cherry “He would kill the next person who jumped him. Nobody was ever going to beat him like that again” (Hinton 34). It is this part of the conversation that occurs in Chapter 2 that foreshadows that Johnny will later use his switch blade knife in Chapter 4 to kill Bob, a Soc boy, who along with 4 other Socs attempts to jump both Johnny and Ponyboy at the park.
Hope this helps!