• Catalog

    Catalog

    See All
    • Courses

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS
    • Responsive Web Design
    • Python for Data Science
    • Python for Finance

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
Menu
+ 1

Resource leak: 'Myvar' is never closed. What does that mean?

javainputscanner
6th Dec 2016, 2:30 PM
Deep chand
Deep chand - avatar
1 Answer
+ 7
Use Myvar.close(). You did not close scanner object after using it. Close it at the end of main method in java.
6th Dec 2016, 2:38 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
Hot today
How do I generate a list with <N> unique elements randomly selected from another (already existing) list?
3 Votes
Given three integer matrices A(m*n),B(m*n) and C(m*n) . Print the one with more zero elements. beside code
0 Votes
Guys I'm beginner can anyone help me to add photo in my docui
1 Votes
What would be some improvements you would make to this password generator?
1 Votes
1. Write a program that asks the user for their name and how many times to print it. The program should print out the user’s nam
0 Votes
How does output came as "102 f" and it also throwing some error why?
0 Votes
I still fail test case 4 & 5 in mathematics code challenge.is there anything I miss?
0 Votes
How front end developers and ui designers work together
1 Votes
Loops regarding increment (overthinking !! resulted to doubt)
3 Votes
Why isn’t my code running and giving an output?
1 Votes

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • Web Development Fundamentals
  • R
  • Data Science
  • Machine Learning
  • Coding for Marketers
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS
  • Responsive Web Design
  • Python for Data Science
  • Python for Finance
  • jQuery

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023