Run-length decompression

前端 未结 6 1536
天涯浪人
天涯浪人 2021-01-26 17:25

CS student here. I want to write a program that will decompress a string that has been encoded according to a modified form of run-length encoding (which I\'ve already written c

6条回答
  •  生来不讨喜
    2021-01-26 18:18

    Presuming that you're not asking about the parsing, you can convert a string like "10" into an integer like this:

    int i = Integer.parseInt("10");
    

提交回复
热议问题