KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have some code: object Main extends App { val NameTemplate = """^([A-Za-z]+)_(\d+)\.png""".r override def main (args:Array[String]) { // Why is NameTemplate null here? } } Why is NameTemplate not initialized within the main method?
Tags (comma-separated)
Save Edits
Cancel