"using" keyword in java
- by DrDro
In Java is there an equivalent to the C# "using" statement allowing to define a scope for an object:
using (AwesomeClass hooray = new AwesomeClass)
{
// Great code
}
This has probably allready been asked but the keywords make it difficult to find a relevant question.