Happy 4th! Special code for Atlanticmike and Binger

The Off-Topic forum for anything non-LDS related, such as sports or politics. Rated PG through PG-13.
Post Reply
doubtingthomas
God
Posts: 2769
Joined: Fri Jun 18, 2021 6:04 pm

Happy 4th! Special code for Atlanticmike and Binger

Post by doubtingthomas »

Here is a special message for Atlanticmike and Binger in my code. It's very simple, shouldn't be hard to figure out what it says.
And happy 4th of July everyone!

public class fourthofJuly{
public static void main (String [] args){

String A = "Atlanticmike";
String B = "Binger";

int [] numbers = new int [26];

System.out.print (" " + A + " " + "can ");
theword(numbers);
System.out.print (" MY");
theword2(numbers);

System.out.print (" " + B + " " + "can ");
theword(numbers);
System.out.print (" MY");
theword2(numbers);

}

public static void theword (int [] numbers){
for (int i = 0; i < numbers.length; i++){
numbers = i + 64;

if (numbers == 73)
System.out.print ("K" + (char)numbers);

else if (numbers == 83)
System.out.print ((char)numbers + "$");
}
}

public static void theword2 (int [] numbers2){
for (int i = 0; i < numbers2.length; i++){
numbers2 = i + 64;

if (numbers2 == 65)
System.out.print (" " + (char)numbers2);

else if (numbers2 == 83)
System.out.print ((char)numbers2 + "S");
}
}
}
Last edited by doubtingthomas on Mon Jul 04, 2022 11:02 pm, edited 2 times in total.
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus. :roll:
User avatar
canpakes
God
Posts: 7062
Joined: Wed Oct 28, 2020 1:25 am

Re: Happy 4th! Special code for Atlanticmike and Binger

Post by canpakes »

I got it! It’s, “Be Sure to Drink Your Ovaltine” …
doubtingthomas
God
Posts: 2769
Joined: Fri Jun 18, 2021 6:04 pm

Re: Happy 4th! Special code for Atlanticmike and Binger

Post by doubtingthomas »

canpakes wrote:
Mon Jul 04, 2022 5:50 pm
I got it! It’s, “Be Sure to Drink Your Ovaltine” …

Alright, I'll change it to PG-13
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus. :roll:
User avatar
canpakes
God
Posts: 7062
Joined: Wed Oct 28, 2020 1:25 am

Re: Happy 4th! Special code for Atlanticmike and Binger

Post by canpakes »

Happy Fourth, DT! We’re about to dig into some BBQ chops, corn and tators. We’ll raise our glasses to you, and to all of the Forum folks. : )
drumdude
God
Posts: 5212
Joined: Thu Oct 29, 2020 5:29 am

Re: Happy 4th! Special code for Atlanticmike and Binger

Post by drumdude »

10 GOTO 20
20 GOTO 10


Oops just posted the secret recipe to Sic et Non’s incredible success.
doubtingthomas
God
Posts: 2769
Joined: Fri Jun 18, 2021 6:04 pm

Re: Happy 4th! Special code for Atlanticmike and Binger

Post by doubtingthomas »

canpakes wrote:
Mon Jul 04, 2022 11:37 pm
Happy Fourth, DT! We’re about to dig into some BBQ chops, corn and tators. We’ll raise our glasses to you, and to all of the Forum folks. : )

Thanks, canpakes, hopefully, you had a great fourth of July.
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus. :roll:
Post Reply