answersLogoWhite

0

It really depends where are you inputs coming from.

From the keyboard by prompting the user:
import java.util.Scanner;

System.out.print("input: ");
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();

// Do your converting with the input

From a file:

import java.io.FileReader;
import java.util.Scanner;

Scanner scan = new Scanner(new FileReader("inputFile.dat"); // the input data file
int input = scan.nextInt(); //similar to reading from keyboard since the file is now your input source

//Do your converting

scan.close(); // remember to close your files that you opened, good Java conventions

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What are application-level requirements for the Currency Conversion project?

Must model each currency. Must do I/O and currency calculations without crashing.


What is the process involved in developing a currency conversion algorithm?

Developing a currency conversion algorithm involves gathering exchange rate data, determining the input and output formats, writing code to calculate the conversion, testing the algorithm with different currencies, and refining it based on feedback.


How is the close project or phase process linked to the direct and manage project work and perform integrated change control processes?

1) It uses accepented deliverables from the Validate SCope processes as inputs. 2) The project management plan, created or updated through the other processes, in an input to the close project or phase process


What digital control device processes the input information from sensors?

The controller processes the input information from sensors.


What stream perform conversion on another stream?

input


What is the relationship between stakeholders and business analysts in the context of project development and decision-making processes?

Stakeholders and business analysts work closely together in project development and decision-making processes. Stakeholders provide input and requirements for the project, while business analysts analyze and interpret this information to make informed decisions. The relationship between stakeholders and business analysts is collaborative, with both parties working towards the successful completion of the project.


How do you use input in sentence?

Everyone's input was journalized to improve the project. The input valve is on the left side; the exhaust is on the right.


What language is accepted by the PDA for input and processing?

The PDA accepts and processes input in various languages.


What part of the system unit processes input data?

cpu


How are the monitor and control project work and perform integrated change control processes linked?

Change requests generated as a result of monitoring and control activities become an input the Perform Integrated Change Control Process


how does a CPU convert input to output?

A CPU covert input to output bye binary data as input and processes data according to those instructions.


How do the direct and manage project work processes and the monitor and control project work process interact with each other?

The monitor and control project work process often generates change requests that, if approved, become inputs to the direct and manage project work process. work performance data, an output of the direct and mange project work process, is processed and work performance information becomes an input to the monitor and control project work process.