Answers for "what is string . value of in java"

1

get value of string java

public class StringValueOfExample{  
public static void main(String args[]){  
int value=30;  
String s1=String.valueOf(value);  
System.out.println(s1+10);//concatenating string with 10  
}}
Posted by: Guest on October-27-2021
0

String in java

private String hello = "Hello world!";
//or
private String anotherHello = new String("Hello world");
Posted by: Guest on November-13-2021

Code answers related to "what is string . value of in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language