Search found 3 matches

by jdalbey
Tue Nov 26, 2013 7:41 am
Forum: Volume 115 (11500-11599)
Topic: 11503 - Virtual Friends
Replies: 49
Views: 17923

Re: 11503 - Virtual Friends

Here's a tip: The specification says "A name is a string of 1 to 20 letters (uppercase or lowercase). " But what it doesn't say is that the input is CASE-SENSITIVE. An upper case name and a lower case version of the same name are TWO DIFFERENT NAMES. For example: 1 3 a b A B a A produces 2 2 4 NOT 2...
by jdalbey
Sat Oct 20, 2012 5:35 am
Forum: Volume 1 (100-199)
Topic: 170 - Clock Patience
Replies: 28
Views: 2560

170 Clock Patience - incorrect spec?

Hello, The spec for #170 says: "The input will consist of decks of cards arranged in four lines of 13 cards, cards separated by a single blank. " It gives sample input of this: TS QC 8S 8D QH 2D 3H KH 9H 2H TH KS KC When it says "separated by a single blank" I assume that means there are no blanks b...
by jdalbey
Thu Dec 10, 2009 6:17 pm
Forum: Java
Topic: Improved ReadLine
Replies: 0
Views: 2705

Improved ReadLine

The sample ReadLn() method doesn't really read an entire line of data. It just reads the number of bytes specified in the parameter. Here is an improved version that actually reads an entire line. /** Return a line of input from, * or null if EOF. */ static String ReadLn () { int inbyte = ...

Go to advanced search