How to Convert Int to String in Groovy - Code Snippet

How to perform 'Convert Int to String' in Groovy.

example.groovy
// Task: Convert Int to String
// Language: Groovy

def convert_int_to_string() {
    // Implementation for Convert Int to String
    def result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Convert Int to String
    println("Done");
}
AdSense Slot