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
}
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
}