This is the 1st HTML5 slant canvas

KIWY logo depicting a kiwi bird with a candle

k i w y

Need a light for your site?

This is the 2nd HTML5 slant canvas

Concatenation

// Illustrates concatenation operation in output statements

public class Cat
{
  public static void main(String[] args)
  {
    // concatenation of two strings
    System.out.println("\nHere are some facts for your " +
			"edification, education, and enjoyment");

    System.out.println();	// prints a blank line

    // Numeric values can be printed separately in print calls
    System.out.print("Number of eyes on a cyclops: ");
    System.out.println(1);

    // Numeric values can be concatenated with strings
    System.out.println("Number of days in February: " + 28);

    System.out.println("Columbus sailed in " + 1492 + " to America");

    int sides = 7;
    System.out.println("A septagon has " + sides + " sides");

    System.out.println();
  }
}
Example of string concatenation vs. addition in output
// Illustrates difference between concatenation and addition in the print
// and println methods

public class Cat2
{
  public static void main(String[] args)
  {
    System.out.println("23 and 56 concatenated: " + 23 + 56);

    System.out.println("23 and 56 added: " + (23 + 56));

  }
}