CSCI 202 homework 2

This assignment must be submitted either in class on Tuesday, 29 January, or uploaded to the Moodle submission page for Homework 2 by 2:45 PM on Tuesday, 29 January.

The task

What are the tokens of the following section of Java code? The easiest way to submit your answer is to circle the tokens.

package edu.unca.cs.csci202.jan222012;

  // A Java program of sorts

public class Example1 {

    public static void /* of use */ main(String[] args) {
        int x = (int)(3.14 / (5 << 2)) ;
        for (int i=x; i<202; ++i) {
            System.out.println("This is line " + i) ;
        }
        System.out.println("abcd" == "ab" + "cd") ;
        System.out.println("abcd".equals("ab".concat("cd"))) ;
    }
}