Wednesday 30 March 2016

Java Tutorial : Java String [valueOf methods]


Click here to watch in Youtube :
https://www.youtube.com/watch?v=DfX43K-iD1I&list=UUhwKlOVR041tngjerWxVccw

 Click the below Image to Enlarge
Java Tutorial : Java String [valueOf methods] 

ValueOfDemo.java
public class ValueOfDemo
{

    public static void main(String[] args)
    {
        int intValue=30;  
        String str=String.valueOf(intValue);
        System.out.println(str);
        
        double doubleValue=30;  
        str=String.valueOf(doubleValue);
        System.out.println(str);
        
        char[] charArray ={'H','i'};;
        str=String.valueOf(charArray);
        System.out.println(str);
        
        boolean value = true;
        str=String.valueOf(value);
        System.out.println(str);        
    }

}
Output
30
30.0
Hi
true
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/StringDemo_valueOf_methods_App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/StringDemo_valueOf_methods_App

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/89dfdef018d2970576505c9f498b5e4f28628c35/BasicJava/StringDemo_valueOf_methods_App/?at=master

See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment