Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27561 > unrolled thread
| Started by | "jay'el antonio" <jlantonio10@gmail.com> |
|---|---|
| First post | 2014-02-20 16:03 -0800 |
| Last post | 2014-03-01 19:52 +0000 |
| Articles | 20 on this page of 53 — 18 participants |
Back to article view | Back to comp.lang.java.programmer
java code "jay'el antonio" <jlantonio10@gmail.com> - 2014-02-20 16:03 -0800
Re: java code Stuart <DerTopper@web.de> - 2014-02-21 14:29 +0100
Re: java code Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-02-22 01:10 -0600
Re: java code Jan Burse <janburse@fastmail.fm> - 2014-02-22 12:36 +0100
Re: java code Stuart <DerTopper@web.de> - 2014-02-22 13:57 +0100
Re: java code Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-02-22 12:05 -0600
Re: java code Stuart <DerTopper@web.de> - 2014-02-22 20:02 +0100
Re: java code Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-02-23 00:52 -0800
Re: java code Roedy Green <see_website@mindprod.com.invalid> - 2014-02-21 08:55 -0800
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-23 09:25 +0000
Re: java code Lew <lewbloch@gmail.com> - 2014-02-23 20:47 -0800
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-24 09:06 +0000
Re: java code Arne Vajhøj <arne@vajhoej.dk> - 2014-02-24 19:23 -0500
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-25 09:22 +0000
Re: java code Lew <lewbloch@gmail.com> - 2014-02-25 15:08 -0800
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-26 08:47 +0000
Re: java code leif.roar@invalid.com (Leif Roar Moldskred) - 2014-02-25 03:56 -0600
Re: java code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-02-25 14:54 -0800
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-26 09:07 +0000
Re: java code Simon Lewis <simonlewis2001@gmail.com> - 2014-02-26 12:40 +0100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-26 14:54 +0000
Re: java code Simon Lewis <simonlewis2001@gmail.com> - 2014-02-26 16:10 +0100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-02-26 15:45 +0000
Re: java code Robert Klemme <shortcutter@googlemail.com> - 2014-02-27 14:01 +0100
Re: java code Simon Lewis <simonlewis2001@gmail.com> - 2014-02-27 14:48 +0100
Re: java code leif.roar@invalid.com (Leif Roar Moldskred) - 2014-02-27 09:49 -0600
Re: java code Joerg Meier <joergmmeier@arcor.de> - 2014-02-27 19:24 +0100
Re: java code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-02-26 12:53 -0800
Re: java code Lew <lewbloch@gmail.com> - 2014-02-28 16:10 -0800
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 08:36 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-01 20:51 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 10:31 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-01 21:44 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 10:49 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-01 21:58 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 12:00 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-02 11:36 +1100
Re: java code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-02-26 12:59 -0800
Re: java code David Lamb <dalamb@cs.queensu.ca> - 2014-02-28 20:42 -0500
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 08:58 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-01 21:00 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 10:45 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-01 22:04 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-01 12:13 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-02 11:05 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-02 08:57 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-03-02 22:02 +1100
Re: java code lipska the kat <lipskathekat@example.com> - 2014-03-02 11:57 +0000
Re: java code leif.roar@invalid.com (Leif Roar Moldskred) - 2014-03-02 06:57 -0600
Re: java code David Lamb <dalamb@cs.queensu.ca> - 2014-03-02 15:21 -0500
Re: java code rossum <rossum48@coldmail.com> - 2014-02-26 22:06 +0000
Re: java code "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-02-27 14:01 +1100
Re: java code v_borchert@despammed.com (Volker Borchert) - 2014-03-01 19:52 +0000
Page 1 of 3 [1] 2 3 Next page →
| From | "jay'el antonio" <jlantonio10@gmail.com> |
|---|---|
| Date | 2014-02-20 16:03 -0800 |
| Subject | java code |
| Message-ID | <ac8eddc9-1375-4387-9fe4-89a8a11ef11f@googlegroups.com> |
please someone help me..what is the code of this output program using java 11 221 3321 44321 554321 6654321 77654321 887654321
[toc] | [next] | [standalone]
| From | Stuart <DerTopper@web.de> |
|---|---|
| Date | 2014-02-21 14:29 +0100 |
| Message-ID | <le7kcl$js3$1@dont-email.me> |
| In reply to | #27561 |
On 02/21/14, Stefan Ram wrote:
> My new version corrects a mistake (a final »%n« was missing),
> and takes into account the possible objection that the program
> was intended to be written with two nested loops:
>
> public final class Main
> { public static void main( final java.lang.String[] args )
> { while( args == null )while( args == null ); java.lang.System.out.printf
> ( "11%n221%n3321%n44321%n554321%n6654321%n77654321%n887654321%n" ); }}
I was going to ask you whether you have some kind of archive for FAHQ,
but this proves that these gems are hand-crafted on the fly. Nice job, too.
It is a pity that Java offers not so many code obfuscation techniques as
C++ does. I usually enjoy your C++ postings more (especially
a1a63f20-d25a-4e46-93be-7fb0582c7d5b@googlegroups.com, that was hilarious).
Regards,
Stuart
[toc] | [prev] | [next] | [standalone]
| From | Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> |
|---|---|
| Date | 2014-02-22 01:10 -0600 |
| Message-ID | <le9igg$mn$1@dont-email.me> |
| In reply to | #27564 |
On 2/21/2014 7:29 AM, Stuart wrote:
> It is a pity that Java offers not so many code obfuscation techniques as
> C++ does. I usually enjoy your C++ postings more (especially
> a1a63f20-d25a-4e46-93be-7fb0582c7d5b@googlegroups.com, that was hilarious).
I disagree, here is some wonderful code obfuscation. Were I more
involved, I would have tried to find a better obfuscation than roman
numerals for the main string, but, with any luck, the OP is reading this
in a client with variable-width font and the text runs together as a
whole lot of I's.
public class Test {
public static void main(String... args) {
char[] K = new char[256];
int K = 0, Κ = 0;
char[] К = ("ⅠⅠⅠⅠⅠⅠⅠⅠⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅢⅢⅢⅢⅢⅢⅢⅡⅥⅠⅠⅢⅢⅢⅢⅢⅢⅢⅢⅢⅢⅡⅡⅡⅢⅤⅣⅠ" +
"ⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡ" +
"ⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥ" +
"ⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢ" +
"ⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡ").toCharArray();
int Ⲕ = К.length;
while (Κ < К.length) {
switch (К[Κ]) {
case 'Ⅰ': K++; break;
case 'Ⅱ': K--; break;
case 'Ⅲ': K[K]++; break;
case 'Ⅳ': K[K]--; break;
case 'Ⅴ': Ⲕ = Κ; if (K[K] == 0) Κ = K(К, Κ); break;
case 'Ⅵ': Κ = Ⲕ - 1; break;
case 'Ⅶ': System.out.print(K[K]); break;
}
Κ++;
}
}
private static int K(char[] К, int Κ) {
int K = 0;
for (++Κ; Κ < К.length; Κ++) {
if (К[Κ] == 'Ⅴ') K++;
else if (К[Κ] == 'Ⅵ' && K-- == 0) return Κ;
}
return Κ;
}
}
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
[toc] | [prev] | [next] | [standalone]
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Date | 2014-02-22 12:36 +0100 |
| Message-ID | <lea23p$nkq$1@news.albasani.net> |
| In reply to | #27569 |
Joshua Cranmer 🐧 schrieb: > Snip Looks like PL0 with romans to me. +1
[toc] | [prev] | [next] | [standalone]
| From | Stuart <DerTopper@web.de> |
|---|---|
| Date | 2014-02-22 13:57 +0100 |
| Message-ID | <lea6rt$u7l$1@dont-email.me> |
| In reply to | #27569 |
On 2/21/2014, Stuart wrote:
>> It is a pity that Java offers not so many code obfuscation
>> techniques as C++ does.
On 02/22/14, Joshua Cranmer wrote:
> I disagree, here is some wonderful code obfuscation. Were I more
> involved, I would have tried to find a better obfuscation than roman
> numerals for the main string, but, with any luck, the OP is reading this
> in a client with variable-width font and the text runs together as a
> whole lot of I's.
> public class Test {
> public static void main(String... args) {
> char[] K = new char[256];
> int K = 0, Κ = 0;
> char[] К = ("ⅠⅠⅠⅠⅠⅠⅠⅠⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅢⅢⅢⅢⅢⅢⅢⅡⅥⅠⅠⅢⅢⅢⅢⅢⅢⅢⅢⅢⅢⅡⅡⅡⅢⅤⅣⅠ" +
> "ⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡ" +
> "ⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥ" +
> "ⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢ" +
>
> "ⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡⅢⅢⅢⅢⅢⅢⅢⅢⅤⅣⅠⅢⅠⅢⅡⅡⅥⅠⅠⅦⅡⅤⅠⅦⅣⅡⅣⅥⅠⅠⅦⅡⅡⅡ").toCharArray();
>
> int Ⲕ = К.length;
> while (Κ < К.length) {
> switch (К[Κ]) {
> case 'Ⅰ': K++; break;
> case 'Ⅱ': K--; break;
> case 'Ⅲ': K[K]++; break;
> case 'Ⅳ': K[K]--; break;
> case 'Ⅴ': Ⲕ = Κ; if (K[K] == 0) Κ = K(К, Κ); break;
> case 'Ⅵ': Κ = Ⲕ - 1; break;
> case 'Ⅶ': System.out.print(K[K]); break;
> }
> Κ++;
> }
> }
>
> private static int K(char[] К, int Κ) {
> int K = 0;
> for (++Κ; Κ < К.length; Κ++) {
> if (К[Κ] == 'Ⅴ') K++;
> else if (К[Κ] == 'Ⅵ' && K-- == 0) return Κ;
> }
> return Κ;
> }
> }
Wow, that's awful.
At first, this code wouldn't run because for some reasons Thunderbird
treated the K in the lines
char[] K = new char[256];
and the first K in this line
int K = 0, Κ = 0;
both as 0x4B, thus making the code erroneous. Or maybe it was one of the
newsservers that made the substitution.
I never knew that Java allowed Unicode letters in the source code, so I
even learned something new today.
Thanks for sharing,
Stuart
@Stefan Ram: Sorry, Joshua clearly blew you out of the water...
[toc] | [prev] | [next] | [standalone]
| From | Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> |
|---|---|
| Date | 2014-02-22 12:05 -0600 |
| Message-ID | <leaot1$78m$1@dont-email.me> |
| In reply to | #27571 |
On 2/22/2014 6:57 AM, Stuart wrote: > At first, this code wouldn't run because for some reasons Thunderbird > treated the K in the lines > char[] K = new char[256]; > and the first K in this line > int K = 0, Κ = 0; > both as 0x4B, thus making the code erroneous. Or maybe it was one of the > newsservers that made the substitution. Looking at your newspost in a mojibaked output: > char[] K = new char[256]; > int K = 0, Κ = 0; So the actual newsgroup text was transported without normalization. Running some tests, it appears that U+212A KELVIN SYMBOL gets normalized to the ASCII K under NFC (I thought it was NFKC), which means that either pasting from the clipboard to your IDE or your actual Java compiler is doing some NFC normalization. I suppose you could distinguish the two by seeing if the ASCII K can refer to a variable called \u212a (Unicode escapes are legal outside of strings in Java). > I never knew that Java allowed Unicode letters in the source code, so I > even learned something new today. And now you learn a little about Unicode normalization. :-) -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
[toc] | [prev] | [next] | [standalone]
| From | Stuart <DerTopper@web.de> |
|---|---|
| Date | 2014-02-22 20:02 +0100 |
| Message-ID | <leas92$rk8$1@dont-email.me> |
| In reply to | #27572 |
On 02/22/14, Stefan Ram wrote: > To prevent the dreaded clipboard normalization, I will from now on post > my source code in a way that will evade any clipboard normalization. > > \u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0066\u0069\u006e\u0061\u006c\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u004d\u0061\u0069\u006e > \u007b\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0020\u0066\u0069\u006e\u0061\u006c\u0020\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0074\u0072\u0069\u006e\u0067\u005b\u005d\u0020\u0061\u0072\u0067\u0073\u0020\u0029 > \u0020\u0020\u007b\u0020\u0077\u0068\u0069\u006c\u0065\u0028\u0020\u0061\u0072\u0067\u0073\u0020\u003d\u003d\u0020\u006e\u0075\u006c\u006c\u0020\u0029\u0077\u0068\u0069\u006c\u0065\u0028\u0020\u0061\u0072\u0067\u0073\u0020\u003d\u003d\u0020\u006e\u0075\u006c\u006c\u0020\u0029\u003b\u0020\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u0066 > \u0020\u0020\u0020\u0020\u0028\u0020\u0022\u0031\u0031\u0025\u006e\u0032\u0032\u0031\u0025\u006e\u0033\u0033\u0032\u0031\u0025\u006e\u0034\u0034\u0033\u0032\u0031\u0025\u006e\u0035\u0035\u0034\u0033\u0032\u0031\u0025\u006e\u0036\u0036\u0035\u0034\u0033\u0032\u0031\u0025\u006e\u0037\u0037\u0036\u0035\u0034\u0033\u0032\u0031\u0025\u006e\u0038\u0038\u0037\u0036\u0035\u0034\u0033\u0032\u0031\u0025\u006e\u0022\u0020\u0029\u003b\u0020\u007d\u007d Great, now you made me laugh so hard that one of my children woke up. I'm afraid that Joshua is still in the lead, though. Regards, Stuart
[toc] | [prev] | [next] | [standalone]
| From | Kevin McMurtrie <mcmurtrie@pixelmemory.us> |
|---|---|
| Date | 2014-02-23 00:52 -0800 |
| Message-ID | <mcmurtrie-6C3EAF.00521923022014@c-61-68-245-199.per.connect.net.au> |
| In reply to | #27564 |
In article <le7kcl$js3$1@dont-email.me>, Stuart <DerTopper@web.de>
wrote:
> On 02/21/14, Stefan Ram wrote:
> > My new version corrects a mistake (a final »%n« was missing),
> > and takes into account the possible objection that the program
> > was intended to be written with two nested loops:
> >
> > public final class Main
> > { public static void main( final java.lang.String[] args )
> > { while( args == null )while( args == null ); java.lang.System.out.printf
> > ( "11%n221%n3321%n44321%n554321%n6654321%n77654321%n887654321%n" ); }}
>
> I was going to ask you whether you have some kind of archive for FAHQ,
> but this proves that these gems are hand-crafted on the fly. Nice job, too.
>
> It is a pity that Java offers not so many code obfuscation techniques as
> C++ does. I usually enjoy your C++ postings more (especially
> a1a63f20-d25a-4e46-93be-7fb0582c7d5b@googlegroups.com, that was hilarious).
>
> Regards,
> Stuart
Obfuscation? (Not sure that the output is very useful. It has been
de-tuned for posting. Sorry.)
import java.io.ByteArrayInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
public class SEA
{
public static void main(
String args[])
throws Exception
{
final String code=""
+"AEQyFMdCUqCRS2Fa4xksfA8USAJqxT"
+"oY4yCCMJznOU5yjEcQzDPWISiJIATk"
+"EY5jHEMJBHMYxDntW9sZehYQypQ5ih"
+"EMYykIQBSntbGYEIIIxDGIYRiGIZCE"
+"AMYqMkVIEIKRCEIMEAhCMYxhmMYTEl"
+"IUBzkCU5SnCIQBHK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gogiCAIRB"
+"R0qSUURlSFGPpRTaXpgjNJYmBIFQQQ"
+"CDtCHMnqiRk9EkQKUpQ0QKWwNYkARh"
+"6RxWALlnQ9Aot+h6HoWguVewoImBTM"
+"Ac/Q6K85GkWhBSn2FNmwADoUBIIGBS"
+"kNQyqD0fQPsYqRGHcIVMG2CkoKFejk"
+"0GkLHEYgA6KEBADjivvgzYrjyYd+h9"
+"+ukdRnOwxzj6EfQgDd7iDAc5CdkY6O"
+"wiSzTEGSRUlEAjTBoEXQlRhoBABhYA"
+"jBjOwGM4kDBYEy4CEArBhAkCFpUpSU"
+"mVruumV1Ng+TAYoBVqSN6aIQrpTDMA"
+"oFnQg6+vqMdUBI1ihhAAowMGsbCCAE"
+"AFoAMgFpWCgjAApCAIAE6DmOpZDMS0"
+"ykHMY7FKOdK12WYAClWFCAjURTDgEA"
+"BEIIxCEFQEAQAYgCCASBAwEaNQsFYR"
+"GSKH0EygANhAgCBC5r6KUjlelHQmb0"
+"JzDAEZkBiRrTCGAAQlQcqFXUUAwAUU"
+"AjaAAHVrAFAwunBxiRuDNB2MuNE1RA"
+"1IxrFNKMjEo0TAY5CsG9akKQzryecO"
+"SQywJaZQztU5qXKUk6BA0YyTNOlwwB"
+"ABAVFQo4xyaHQuiH34A=";
System.out
.println(xS(d64(code)));
}
private final static char[] b64 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
.toCharArray();
private final static byte[] ib64=new byte[256];
private static final char[] stb "import jav.ByeAInuS;\nOEFxclLs\tbgd([])hw{f=MT*2,}vkq0@1CPHG"
.toCharArray();
private static final int EOF=-1;
private static final int BREAK=-2;
static
{
for(int i=0;i<ib64.length;++i)
ib64[i]=-1;
for(int i=0;i<b64.length;++i)
ib64[b64[i]]=(byte)i;
}
private static String xS(
byte[] data)
throws IOException
{
final char mtf[][]=nMTF();
final StringBuilder buf=new StringBuilder(
data.length*2);
final Bis dec=new Bis(
new ByteArrayInputStream(
data));
ex(dec,mtf,buf);
return buf.toString();
}
private static byte[] d64(
CharSequence str)
{
return d64(str,0,str
.length());
}
private static byte[] d64(
CharSequence in,
int off,int len)
{
final int outLen=3
*(len/4)
-((in.charAt(off+len
-1)=='=')?((in
.charAt(off+len-2)=='=')?2
:1)
:0);
final byte outBuf[]=new byte[outLen];
int opos=0;
while(opos<outLen)
{
u34(in,off,outBuf,opos);
off+=4;
opos+=3;
}
return outBuf;
}
static void u34(
final CharSequence in,
int inOff,
final byte out[],
int outOff)
{
final byte b1=ib64[in
.charAt(inOff++)];
final byte b2=ib64[in
.charAt(inOff++)];
if((b1==-1)||(b2==-1))
throw new IllegalArgumentException();
out[outOff++]=(byte)((b1<<2)|(b2>>>4));
final char c3=in
.charAt(inOff++);
if(c3=='=')
return;
final byte b3=ib64[c3];
if(b3==-1)
throw new IllegalArgumentException();
out[outOff++]=(byte)((b2<<4)|(b3>>>2));
final char c4=in
.charAt(inOff++);
if(c4=='=')
return;
final byte b4=ib64[c4];
if(b4==-1)
throw new IllegalArgumentException();
out[outOff++]=(byte)((b3<<6)|b4);
}
private static char[][] nMTF()
{
return new char[][]{
stb.clone(),
stb.clone(),
stb.clone(),
stb.clone(),
stb.clone(),
stb.clone(),
stb.clone()};
}
private static char mtfD(
int pos,char table[])
{
final char c=table[pos];
for(int i=pos;i>0;--i)
table[i]=table[i-1];
table[0]=c;
return c;
}
private static void insF(
char c,char table[])
{
for(int iW;i>0;--i)
table[i]=table[i-1];
table[0]=c;
}
private static int dc(
char table[],Bis in)
throws IOException
{
final int pos=in
.readInt(5);
if(pos<0)
return EOF;
if(pos<')
return mtfD(pos,table);
if(pos=))
{
final int high=in
.readInt(5);
if(high<0)
throw new EOFException();
if(high=0)
return BREAK;
if(high=1)
return EOF;
return mtfD(28+high,
table);
}else if(pos=0)
{
final int ascii=in
.readInt(7);
if(ascii<0)
throw new EOFException();
insF((char)ascii,table);
return ascii;
}
final int utf=in
.readInt(16);
if(utf<0)
throw new EOFException();
insF((char)utf,table);
return utf;
}
private static int ex(
Bis in,char mtf[][],
StringBuilder buf)
throws IOException
{
int hash=0;
int b;
while((bÜ(
mtf[(hash&0x7fffffff)
%mtf.length],in))>=0)
{
buf.append((char)b);
hash=(hash<<8)+b;
}
return b;
}
private static class Bis
{
protected final InputStream in;
protected int bits=0;
protected int acc=0;
Bis(InputStream in)
{
this.in=in;
}
int readInt(int len)
throws IOException
{
if(acc==-1)
return -1;
int b=0;
while(len>0)
{
if(bits<=0)
{
acc=in.read();
if(acc==-1)
return -1;
bits=8;
}
final int shift=bits
-len;
if(shift>0)
{
final int mask=~(~0<<len);
b|=(acc>>>shift)
&mask;
bits-=len;
len=0;
}else if(shift<0)
{
final int mask=~(~0<<bits);
b|=(acc&mask)<<-shift;
len-=bits;
bits=0;
}else
{
final int mask=~(~0<<len);
b|¬c&mask;
bits=0;
len=0;
}
}
return b;
}
}
}
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-02-21 08:55 -0800 |
| Message-ID | <u61fg91gkf1bfmeir6irqamf16ojm068ad@4ax.com> |
| In reply to | #27561 |
On Thu, 20 Feb 2014 16:03:51 -0800 (PST), "jay'el antonio" <jlantonio10@gmail.com> wrote, quoted or indirectly quoted someone who said : >please someone help me..what is the code of this output program using java see http://mindprod.com/jgloss/homework.html -- Roedy Green Canadian Mind Products http://mindprod.com The future has already happened, it just isn’t evenly distributed. ~ William Gibson (born: 1948-03-17 age: 65)
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-02-23 09:25 +0000 |
| Message-ID | <1o6dnRRLlOIZI5TOnZ2dnUVZ7oednZ2d@bt.com> |
| In reply to | #27561 |
On 21/02/14 00:03, jay'el antonio wrote:
> please someone help me..what is the code of this output program using java
> 11
> 221
> 3321
> 44321
> 554321
> 6654321
> 77654321
> 887654321
Well. Now that everyone has had the obligatory attempt at being a
smartarse and, hopefully, you have had time to figure this out for
yourself, try this. There are some possible 'optimizations' depending on
you view regarding 'unnecessary' variables and hard-coded magic numbers.
I'm sure some of the smartarses will offer their invaluable advice in
this area.
public class AntiSmartArseClass {
public static void main(String[] args) {
int increment = 11;
int iterations = 8;
int outerindex = 1;
int innerindex= 0;
while(outerindex <= iterations){
System.out.printf("%d", outerindex * increment);
innerindex = (outerindex * increment) % 10;
while(innerindex > 1){
System.out.printf("%d", --innerindex);
}
outerindex++;
System.out.println();
}
}
}
--
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2014-02-23 20:47 -0800 |
| Message-ID | <79f3dad1-4e94-434c-83f1-6c0eeff87ec3@googlegroups.com> |
| In reply to | #27577 |
lipska the kat wrote:
> Well. Now that everyone has had the obligatory attempt at being a
> smartarse and, hopefully, you have had time to figure this out for
> yourself, try this. There are some possible 'optimizations' depending on
> you view regarding 'unnecessary' variables and hard-coded magic numbers.
> I'm sure some of the smartarses will offer their invaluable advice in
> this area.
Absolutely.
> public class AntiSmartArseClass {
It is pointless to put 'Class' into a class name, as we already now that it's a class from
the (you guessed it) 'class' keyword.
More to the point, thinking in terms of classes is a less powerful mode than
thinking in terms of types. Names should be semantic, and not reflective of
implementation.
> public static void main(String[] args) {
> int increment = 11;
This would be better as a constant.
> int iterations = 8;
>
> int outerindex = 1;
> int innerindex= 0;
Looks like you're reinventing the 'for' loop here.
> while(outerindex <= iterations){
Yep.
> System.out.printf("%d", outerindex * increment);
> innerindex = (outerindex * increment) % 10;
And the nested 'for' loop.
> while(innerindex > 1){
Which proves that you are all macho and everything, sure, but
the problem is that these variables have too wide a scope. Use
of the 'for' loop brings you proper scoping for free.
> System.out.printf("%d", --innerindex);
> }
> outerindex++;
You really should follow the Java Naming Conventions, which call for camel
case on these variables.
> System.out.println();
> }
> }
> }
You're welcome.
--
Lew
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-02-24 09:06 +0000 |
| Message-ID | <I9udneg4xs0YlpbOnZ2dnUVZ8lednZ2d@bt.com> |
| In reply to | #27578 |
On 24/02/14 04:47, Lew wrote:
> lipska the kat wrote:
<snip>
>> public class AntiSmartArseClass {
>
> It is pointless to put 'Class' into a class name, as we already now that it's a class from
> the (you guessed it) 'class' keyword.
... and here we have the smartarse master, master of smartarses, arse
master smart and smarter than an arse with a smart part.
> More to the point, thinking in terms of classes is a less powerful mode than
> thinking in terms of types.
ROFLOL. What complete and utter tosh. Really, your capacity for talking
bollocks is alive and well I see. You have been a bit quiet recently,
did the meds stop working?
> Names should be semantic, and not reflective of
> implementation.
Waffle waffle waffle.
>> public static void main(String[] args) {
>> int increment = 11;
>
> This would be better as a constant.
Well firstly, you buffoon, although const *is* a reserved word in Java
it is not currently used, do you mean final? We have been down this road
soooooo many time before in here haven't we?
>
>> int iterations = 8;
>>
>> int outerindex = 1;
>> int innerindex= 0;
>
> Looks like you're reinventing the 'for' loop here.
Yawn
>
>> while(outerindex <= iterations){
>
> Yep.
You are an idiot. I was paraphrasing the 'code' (if you can call it
that) posted by another smartarse master.
>> System.out.printf("%d", outerindex * increment);
>> innerindex = (outerindex * increment) % 10;
>
> And the nested 'for' loop.
Idiot
>> while(innerindex > 1){
>
> Which proves that you are all macho and everything, sure, but
> the problem is that these variables have too wide a scope. Use
> of the 'for' loop brings you proper scoping for free.
What on earth are you waffling about now? "all macho and everything"
Have you ever seen a head doctor? I'd bet there are quite a few Ph D's
floating about in that confused and befuddled cranial mass you presume
to call a brain.
>
>> System.out.printf("%d", --innerindex);
>> }
>> outerindex++;
>
> You really should follow the Java Naming Conventions, which call for camel
> case on these variables.
>
>> System.out.println();
>> }
>> }
>> }
>
> You're welcome.
Well this *has* been ... a waste of time (as usual).
Instead of being a *complete and utter* smartarse, why not post a
reworked version ... I alluded to the fact that the code could do with a
bit of a refactor, or did you miss that? Too busy being a smartarse I
suppose.
Idiot
--
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2014-02-24 19:23 -0500 |
| Message-ID | <530be291$0$303$14726298@news.sunsite.dk> |
| In reply to | #27581 |
On 2/24/2014 4:06 AM, lipska the kat wrote:
> On 24/02/14 04:47, Lew wrote:
>> lipska the kat wrote:
>>> public static void main(String[] args) {
>>> int increment = 11;
>>
>> This would be better as a constant.
>
> Well firstly, you buffoon, although const *is* a reserved word in Java
> it is not currently used, do you mean final? We have been down this road
> soooooo many time before in here haven't we?
He did not say const - he said constant.
Which per JLS and normal Java terminology means static final.
Arne
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-02-25 09:22 +0000 |
| Message-ID | <w6Kdnax3lfJL_ZHOnZ2dnUVZ7r6dnZ2d@bt.com> |
| In reply to | #27584 |
On 25/02/14 00:23, Arne Vajhøj wrote:
> On 2/24/2014 4:06 AM, lipska the kat wrote:
>> On 24/02/14 04:47, Lew wrote:
>>> lipska the kat wrote:
>>>> public static void main(String[] args) {
>>>> int increment = 11;
>>>
>>> This would be better as a constant.
>>
>> Well firstly, you buffoon, although const *is* a reserved word in Java
>> it is not currently used, do you mean final? We have been down this road
>> soooooo many time before in here haven't we?
>
> He did not say const - he said constant.
>
> Which per JLS and normal Java terminology means static final.
The variable concerned has block scope within main.
You cannot apply the static modifier here.
static final int increment = 11;
my compiler says no with
Illegal modifier for parameter increment only final is permitted
So, you *could say*
final int increment
however this is not a constant because it's (potential) value is not
known at the time of declaration, at this point it is a 'variable'
later you can say (for example)
increment = Integer.parseInt(args[1]);
Now it's a final int but not a constant according to you via apparently
the JLS and 'normal Java terminology'
You could increase the visibility of increment to class scope, then you
*can* say
static final int increment = 11;
but you can also say
static final int increment;
increment is not a constant, it's an uninitialized static final int,
there's a difference.
You can then say
increment = 11;
However this would make the scope of increment wider which is another
Bloch no no.
Obviously I can't prove the following in Java as the reserved word const
is unused so I'll use C
in C (gcc -std=c99)
const int x;
x is a constant
If you don't initialize at declaration time it has value 0 and cannot be
changed, it is in effect read only. If you try and do this later
x = 10; compiler says no.
Of course you can do this
const int x = 10;
but only at the time of declaration.
So then Arne, how exactly would you make the variable increment constant
within main using your own criteria of a 'constant' in Java being static
final.
As always I'll be delighted to be shown how wrong I am.
--
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2014-02-25 15:08 -0800 |
| Message-ID | <b10f2fc3-c878-4b42-b5ac-688eee56d53c@googlegroups.com> |
| In reply to | #27586 |
lipska the kat wrote: > Arne Vajhøj wrote: >> He did not say const - he said constant. >> Which per JLS and normal Java terminology means static final. Nope. It does not. It means a primitive or String literal, an expression involving constants, or a 'final' variable initialized with a constant expression. It need not be 'static'. > The variable concerned has block scope within main. > You cannot apply the static modifier here. Lipska, you should study Java before blathering. You make no sense. If you don't even know what a "constant" is in Java, you need to study more. > static final int increment = 11; > > my compiler says no with > Illegal modifier for parameter increment only final is permitted So don't say 'static', duh. C'mon, learn Java already! > So, you *could say* > final int increment > however this is not a constant because it's (potential) value is not > known at the time of declaration, at this point it is a 'variable' Right. So? > later you can say (for example) > > increment = Integer.parseInt(args[1]); > > Now it's a final int but not a constant according to you via apparently > the JLS and 'normal Java terminology' Disingenuous. Work from the *actual* definition of "constant" in Java, please. > You could increase the visibility of increment to class scope, then you > *can* say > static final int increment = 11; And that would be a "constant variable" in Java. > but you can also say > static final int increment; > increment is not a constant, it's an uninitialized static final int, > there's a difference. Yes. That's in the JLS. > You can then say > increment = 11; > However this would make the scope of increment wider which is another > Bloch no no. This has nothing to do with what I said, which was "use a constant". > Obviously I can't prove the following in Java as the reserved word const > is unused so I'll use C Irrelevant. Ignored. > So then Arne, how exactly would you make the variable increment constant > within main using your own criteria of a 'constant' in Java being static > final. Actually, he'd use the Java definition, not the mistaken one. > As always I'll be delighted to be shown how wrong I am. Yeah, right. You're wrong because you aren't talking about Java constants. I said to use a constant. Let's address that advice, hm? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-02-26 08:47 +0000 |
| Message-ID | <R_GdnZ-9DfOHN5DOnZ2dnUVZ7qCdnZ2d@bt.com> |
| In reply to | #27591 |
On 25/02/14 23:08, Lew wrote: > lipska the kat wrote: >> Arne Vajhøj wrote: >>> He did not say const - he said constant. >>> Which per JLS and normal Java terminology means static final. > > Nope. It does not. <snip> > I said to use a constant. Let's address that advice, hm Still waiting ... -- Lipska the Kat©: Troll hunter, sandbox destroyer, treacherous feline and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net
[toc] | [prev] | [next] | [standalone]
| From | leif.roar@invalid.com (Leif Roar Moldskred) |
|---|---|
| Date | 2014-02-25 03:56 -0600 |
| Message-ID | <0O2dnc370ONM9ZHOnZ2dnUVZ8nGdnZ2d@giganews.com> |
| In reply to | #27581 |
lipska the kat <lipskathekat@example.com> wrote: > > ... and here we have the smartarse master, master of smartarses, arse > master smart and smarter than an arse with a smart part. Lew can be a pedant, but I don't think I've ever seen him be a smartarse. -- Leif Roar Moldskred
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2014-02-25 14:54 -0800 |
| Message-ID | <Ba9Pu.17001$yN4.14072@fx29.iad> |
| In reply to | #27577 |
On 2/23/14 1:25 AM, lipska the kat wrote:
> On 21/02/14 00:03, jay'el antonio wrote:
>> please someone help me..what is the code of this output program using
>> java
>> 11
>> 221
>> 3321
>> 44321
>> 554321
>> 6654321
>> 77654321
>> 887654321
>
> Well. Now that everyone has had the obligatory attempt at being a
> smartarse and, hopefully, you have had time to figure this out for
> yourself, try this. There are some possible 'optimizations' depending on
> you view regarding 'unnecessary' variables and hard-coded magic numbers.
> I'm sure some of the smartarses will offer their invaluable advice in
> this area.
>
> public class AntiSmartArseClass {
>
> public static void main(String[] args) {
> int increment = 11;
> int iterations = 8;
>
> int outerindex = 1;
> int innerindex= 0;
>
> while(outerindex <= iterations){
> System.out.printf("%d", outerindex * increment);
> innerindex = (outerindex * increment) % 10;
> while(innerindex > 1){
> System.out.printf("%d", --innerindex);
> }
> outerindex++;
> System.out.println();
> }
> }
> }
>
>
>
You are a Troll, sans Hunter. You also made that far more complicated
than it needs to be.
public class BetterThanATroll {
public static void main(String[] args) {
String s = "";
for (int i = 1; i <= 8; ++i) {
s = i + s;
System.out.println(i + s);
}
}
}
Now that we've given the OP the answer to his homework, I hope he finds
a job working with you rather than with me.
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-02-26 09:07 +0000 |
| Message-ID | <BsWdndo9A85JM5DOnZ2dnUVZ7q6dnZ2d@bt.com> |
| In reply to | #27589 |
On 25/02/14 22:54, Daniel Pitts wrote:
> On 2/23/14 1:25 AM, lipska the kat wrote:
>> On 21/02/14 00:03, jay'el antonio wrote:
>>> please someone help me..what is the code of this output program using
>>> java
>>> 11
>>> 221
>>> 3321
>>> 44321
>>> 554321
>>> 6654321
>>> 77654321
>>> 887654321
<snip>
>
> You are a Troll, sans Hunter.
Yes of course. Anyone who doesn't think like you is a troll. Obviously.
> You also made that far more complicated
> than it needs to be.
>
> public class BetterThanATroll {
> public static void main(String[] args) {
> String s = "";
> for (int i = 1; i <= 8; ++i) {
> s = i + s;
> System.out.println(i + s);
> }
> }
> }
>
>
> Now that we've given the OP the answer to his homework, I hope he finds
> a job working with you rather than with me.
I'm prepared to give anyone the benefit of the doubt ... once. Unlike
you apparently. Fortunately I no longer have to work with people who are
so far up themselves they can see the sky. I can pick and choose my
projects and my colleagues, I doubt you'd make it past the reception desk.
--
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net
[toc] | [prev] | [next] | [standalone]
| From | Simon Lewis <simonlewis2001@gmail.com> |
|---|---|
| Date | 2014-02-26 12:40 +0100 |
| Message-ID | <87ha7m85m5.fsf@gmail.com> |
| In reply to | #27594 |
lipska the kat <lipskathekat@example.com> writes:
> On 25/02/14 22:54, Daniel Pitts wrote:
>> On 2/23/14 1:25 AM, lipska the kat wrote:
>>> On 21/02/14 00:03, jay'el antonio wrote:
>>>> please someone help me..what is the code of this output program using
>>>> java
>>>> 11
>>>> 221
>>>> 3321
>>>> 44321
>>>> 554321
>>>> 6654321
>>>> 77654321
>>>> 887654321
>
> <snip>
>
>>
>> You are a Troll, sans Hunter.
>
> Yes of course. Anyone who doesn't think like you is a troll. Obviously.
>
>> You also made that far more complicated
>> than it needs to be.
>>
>> public class BetterThanATroll {
>> public static void main(String[] args) {
>> String s = "";
>> for (int i = 1; i <= 8; ++i) {
>> s = i + s;
>> System.out.println(i + s);
>> }
>> }
>> }
>>
>>
>> Now that we've given the OP the answer to his homework, I hope he finds
>> a job working with you rather than with me.
>
> I'm prepared to give anyone the benefit of the doubt ... once. Unlike you
> apparently. Fortunately I no longer have to work with people who are so far up
> themselves they can see the sky. I can pick and choose my projects and my
> colleagues, I doubt you'd make it past the reception desk.
Well said.
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | comp.lang.java.programmer
csiph-web