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


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

Re: Can someone determine the output of this?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lars Enderin <lars.enderin@telia.com>
Newsgroups comp.lang.java.programmer
Subject Re: Can someone determine the output of this?
Date Mon, 03 Feb 2014 12:20:42 +0100
Organization albasani.net
Lines 34
Message-ID <52EF7B8A.3050002@telia.com> (permalink)
References <jYOdnUmn99dqv3LPnZ2dnUVZ_q6dnZ2d@giganews.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net ktzrTBq4VF4Uym9iYK+j7I/8d29jOHERUOGL9/q/DH5S8Ue4GRw1socuVyBx+BXCGrDErqal2O7LBQNRoq40bA==
NNTP-Posting-Date Mon, 3 Feb 2014 11:20:46 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="ZTONfuldCgm1FVsKsP7AA+hEbhll3dotXV/PllvPz4CZn5MSwxY1a9ArhpfVEZBN9pnotzM634Mv2XSr8xELrX+waYyDJeDFQWxKIZhpBWG+pTLsDp4WGFZSh2agEfQE"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <jYOdnUmn99dqv3LPnZ2dnUVZ_q6dnZ2d@giganews.com>
Cancel-Lock sha1:4Ree1rOHfqqijNv1i4Bd8VpirPo=
Xref csiph.com comp.lang.java.programmer:27446

Show key headers only | View raw


2014-02-03 06:02, securitygates skrev:
> public class Weather
> {
> 	public static void main(String [] arguments)
> 	{
> 		float fah=86;
> 		System.out.println(fah + "degrees Farenheit is...");
> 		// To convert Farenheit into Celsius
> 		// Begin by subtracting 32
> 		fah = fah-32;
> 		// Divide the answer by 9
> 		fah = fah/9;
> 		// Multiply that answer by 5
> 		fah = fah*5;
> 		System.out.println(fah + "degrees Celsius\n");
> 		
> 		float cel=33;
> 		System.out.println(cel + "degrees Celsius is...");
> 		// To convert Farenheit into Celsius
> 		// Begin by subtracting 32
> 		cel = cel*9;
> 		// Divide the answer by 9
> 		cel = cel/5;
> 		// Multiply that answer by 5
> 		cel=cel+32;
> 		System.out.println(cel + "degrees Farenheit");
> 	}
> }

I can see that you are extremely sloppy, re-using the comments from the
first part without a thought. Your signature sucks, too.

-- 
Lars Enderin

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


Thread

Can someone determine the output of this? securitygates <bradyjimbsg@gmail.com> - 2014-02-02 23:02 -0600
  Re: Can someone determine the output of this? Lars Enderin <lars.enderin@telia.com> - 2014-02-03 12:20 +0100
    Re: Can someone determine the output of this? lipska the kat <lipskathekat@example.com> - 2014-02-03 13:15 +0000
  Re: Can someone determine the output of this? lipska the kat <lipskathekat@example.com> - 2014-02-03 13:36 +0000
  Re: Can someone determine the output of this? Roedy Green <see_website@mindprod.com.invalid> - 2014-02-03 09:18 -0800
  Re: Can someone determine the output of this? Lew <lewbloch@gmail.com> - 2014-02-03 16:37 -0800

csiph-web