Problem

Return Integer.parseInt of first comma-separated field.

Examples

  • firstFieldInt("42,99") -> 42
Compile and test (Ctrl+Enter)