Computer Science, asked by DrStudy, 10 months ago

write a program in Java to accept or enter a string constant and convert that into a number using conversion function.​

Answers

Answered by BrainFck
0

Answer:

import java.util.*

public static void main(String args[])

{Scanner sc=new Scanner(System. in) ;

String str=sc. nextLine() ;

int i=str. parseInt() ;

}

Answered by xcristianox
1

import java.util.*

public static void main(String args[])

{Scanner sc=new Scanner(System. in) ;

String str=sc. nextLine() ;

int i=str. parseInt() ;

}

Similar questions