Groovy web console

subscribe to the feed Subscribe
to this
site

Untitled

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String input = '1234512345123'
String expected = '512345'

String result = input.substring(4, 10)

println result

assert result == expected