Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39082

Re: Evaluation strings question?

Newsgroups comp.lang.java.programmer
Date 2019-08-08 05:03 -0700
References <868b9ba4-bc72-4ad4-8a13-a91bd1ae9c2e@googlegroups.com> <qif7ns$ll7$1@dont-email.me>
Message-ID <f1dda7ff-e0d3-4987-bc1b-efdd8f7c5b35@googlegroups.com> (permalink)
Subject Re: Evaluation strings question?
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


On Wednesday, August 7, 2019 at 3:11:02 PM UTC-4, Eric Sosman wrote:
>      I have no clue, either, but it would be extremely useful to know
> exactly what the input strings look like.  Print them with start and
> end markers of some kind, so you can detect extraneous white space
> and the like:
> 
> 	System.out.println("endHour = [" + endHour + "]");
> 	System.out.println("endMinute = [" + endMinute + "]");
> 	System.out.println("endAmOrPm = [" + endAmOrPm + "]");
> 	// ... or use your favorite logging framework ...
> 

Start and end markers are always helpful for displaying strings if you just need to know if there's spaces before or after.  If there's any chance there's unprintable characters you'll have to convert to hex.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Evaluation strings question? cdalten@gmail.com - 2019-08-07 11:47 -0700
  Re: Evaluation strings question? Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-08-07 15:10 -0400
    Re: Evaluation strings question? cdalten@gmail.com - 2019-08-07 12:28 -0700
      Re: Evaluation strings question? Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-08-07 15:32 -0400
      Re: Evaluation strings question? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-07 22:05 +0200
        Re: Evaluation strings question? cdalten@gmail.com - 2019-08-07 13:47 -0700
    Re: Evaluation strings question? Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 05:03 -0700

csiph-web