Is it possible to use a method to get the same result like the output in line 35?I have tried different methods, but none of them can achieve this.