HuyLe's Blog
rss
email
twitter
facebook
  • Home

Archive for ‘October 2010’

Data Structure Lab 2 - Solutions

no comments
Posted on Monday, October 11, 2010 by Huy Le


1.     Write a short Java function, isOdd that takes an int i and return true if and only if is odd. Your function cannot use the multiplication, modulus, or division operator, however.


2.     Write a short Java program that outputs all possible strings formed by using the character ‘c’, ‘a’,’r’, ‘b’, ‘o’ , and ‘n’ exactly one.


3.     Write a short program that take as input three integer a, b, c from the java console and determines if they can be used in a correct arithmetic formula (in the given order), like “a+b=c,” “ a=b-c,” or “a*b=c”.



Tweet
Newer Entries »

Blog Archive

  • October (1)

About Me

    a computer science student, interested in Cocoa Application Development, Web Application Development.



Powered by Blogger | Designed by WebTreats
Blogger Templates for WP 2 Blogger sponsored by Cinta