/***************************************************************** * Program: Strings and Characters * Programmer: Insert your name here * * Class: COMP 110-001 Instructor: Yi Hong * * Pledge: I have neither given nor received unauthorized aid * on this program. (signature on file) * * Description:This program uses strings and characters * * Input: none * * Output:strings and characters ******************************************************************/ public class StringsAndChars { public static void main(String[] args) { String s1 = "String"; char c1, c2, c3, c4; c1 = 'c'; c2 = 'h'; c3 = 'a'; c4 = 'r'; System.out.println("This is a " + s1); System.out.println("This is four " + c1 + c2 + c3 + c4 + "s");; } }