When you have to write your own class, is it ok to call the scanner class in your class?

Of course, as long as you import the right statements.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.