how to get numbers from a string java code example Example 1: get numbers from a string parseFloat("123") Example 2: get numbers from a string Float.parseFloat("123")