1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlekseyPX
3 years ago
8

Which method call converts the value in variable stringVariable to an integer?

Computers and Technology
1 answer:
zlopas [31]3 years ago
3 0

Answer:

The correct answer for the given question is Integer.parseInt( string variable );

Explanation:

Integer.parseInt( string variable ); is the method in a java programming language that convert the string into the integer value. It takes a string variable and converted into the integer.

Following are the program in java which convert the string value into an integer value.

class Main  

{

 public static void main(String []args) // main function

{

   String str1 = "10009";

// variable declaration

   int k = Integer.parseInt(str1);

// convert the string into integer.

   System.out.println("Converted into Int:" + k);

}

}

Output:

Converted into Int:10009

Convert.toInt( stringVariable );

Convert.parseInt( stringVariable,Integer.toInt( stringVariable ); are not any method to convert the string into integer .

Therefore the correct answer is :Integer.parseInt( stringVariable );

You might be interested in
An example of cooler red is
BARSIC [14]

apple, stop sign, fire truck, stop light... ect

6 0
3 years ago
In the context of an Internet connection, LLC stands for _____. leased line connection liability limited company local loop comp
Anvisha [2.4K]

Answer:

<em>In the context of an Internet connection, LLC stands for Local Loop Carrier.</em>

Explanation:

7 0
2 years ago
In 3 sentence explain what is a spreadsheets.
Alex73 [517]

Answer:

A spreadsheet is a computer application for organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in cells of a table.

Hope this helped, have a good day

5 0
2 years ago
Gina was waiting for her friend at the airport. When she arrived, her friend could see the joy on Gina’s face. Which component o
Aneli [31]

Answer:

c

Explanation:

3 0
2 years ago
Read the following scenario and answer the question that follows:
Helen [10]
A. Add a suggestion for how to improve the issue
6 0
3 years ago
Read 2 more answers
Other questions:
  • What system of representation is used for the threaded portions
    12·1 answer
  • A circuit is supplied with 30 VDC and contains three resistors connected in series. The value or R1 is 80 , the value of R2 is 1
    5·1 answer
  • Is MongoDB open source?
    10·1 answer
  • A flat-panel detector is exposed with nothing between the x-ray tube and detector. 5 images were acquired on 5 different days us
    6·1 answer
  • An organization is planning to implement a VPN. They want to ensure that after a VPN client connects to the VPN server, all traf
    10·1 answer
  • Consider a DataFrame named df with columns named P2010, P2011, P2012, P2013, 2014 and P2015 containing float values. We want to
    9·1 answer
  • In a program you need to store identification numbers of 5 employees and their weekly gross pay.
    11·1 answer
  • What is data base management system? ​
    7·2 answers
  • When working in outline mode, press __________ and click the eye icon to change only one layer back to preview mode.
    10·1 answer
  • A(n) ____________ calculator is a device that assists in the process of numeric calculations but requires the human operator to
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!