i want to use java to do some data struct problem, but i don't know how to input the data from the consolel can anybody show some cases (for example, input some int data)?
the help will be appreciated:cheesy:

smallrain

Member Avatar for Dukane

You can use the Scanner class in the java.util package to read the console line by line and tokenize it. Check it out in the Java API.

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.