Question: Data Structure public class TypeConversion public static void main String] args) f / TODO Auto-generated method stub String intStr 67;//this is a string that contains
public class TypeConversion public static void main String] args) f / TODO Auto-generated method stub String intStr 67;//this is a string that contains some digits of char int A 409; char c2 -'6' //convert string intStr to a numerical value 6780 int num System.out.printlnC"The numerical value for string +intStr is num); // complete here //convert numerical value A to a string String intStr2 = System.out.printlnC"The string for the numerical value "A ; I/complete here is " + intStr2); //convert char c2 to a numerical value 6 // int ic2 = (int) c2; this does not work. int ic2 = System.out.printlnC"The numerical value for char+ c2is ; //complete here ic2); //convert char c2 in to a String type String s2 System.out.println(s2); ;//complete here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
