2-20 StringDemo

posted Jan 22, 2014, 6:14 AM by Dlovan ismail   [ updated Jan 22, 2014, 6:14 AM by Karwan Jacksi ]
// A simple program demonstrating String objects.

package stringdemo;

public class StringDemo 
{
    public static void main(String[] args) 
    {
        String greeting = "Good morning, ";
        String name = "Herman";
        System.out.println(greeting + name);
    }    
}
ċ
StringDemo.java
(0k)
Karwan Jacksi,
Jan 22, 2014, 6:14 AM
Comments