How to Get File Extension in Scala - Code Snippet

How to perform 'Get File Extension' in Scala.

example.scala
// Task: Get File Extension
// Language: Scala

def get_file_extension() {
    // Implementation for Get File Extension
    val result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Get File Extension
    println("Done");
}
AdSense Slot