Statements in Java
Each code block translates to a specific statement in English. There is a theme behind the statements. As code puzzles tend to be "easier" (relative to other PSE puzzles) than expected, it will not be revealed unless people are unable to make any progress on the phrases.
1:
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
you.getService(g)
}
}
2:
System.out.println(listofconcerns.length); \returns 1
System.out.println(listofconcerns[0]); \returns the string "concerns"
3:
(house has been declared and initialized at some point before this line)
int quotient = house/house;
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
4:
int anglevel = anger();
if(anglevel > threshold1) {
wait(10000);
if( anglevel > threshold2) {
wait(90000);
}
}
english computer-puzzle
add a comment |
Each code block translates to a specific statement in English. There is a theme behind the statements. As code puzzles tend to be "easier" (relative to other PSE puzzles) than expected, it will not be revealed unless people are unable to make any progress on the phrases.
1:
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
you.getService(g)
}
}
2:
System.out.println(listofconcerns.length); \returns 1
System.out.println(listofconcerns[0]); \returns the string "concerns"
3:
(house has been declared and initialized at some point before this line)
int quotient = house/house;
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
4:
int anglevel = anger();
if(anglevel > threshold1) {
wait(10000);
if( anglevel > threshold2) {
wait(90000);
}
}
english computer-puzzle
add a comment |
Each code block translates to a specific statement in English. There is a theme behind the statements. As code puzzles tend to be "easier" (relative to other PSE puzzles) than expected, it will not be revealed unless people are unable to make any progress on the phrases.
1:
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
you.getService(g)
}
}
2:
System.out.println(listofconcerns.length); \returns 1
System.out.println(listofconcerns[0]); \returns the string "concerns"
3:
(house has been declared and initialized at some point before this line)
int quotient = house/house;
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
4:
int anglevel = anger();
if(anglevel > threshold1) {
wait(10000);
if( anglevel > threshold2) {
wait(90000);
}
}
english computer-puzzle
Each code block translates to a specific statement in English. There is a theme behind the statements. As code puzzles tend to be "easier" (relative to other PSE puzzles) than expected, it will not be revealed unless people are unable to make any progress on the phrases.
1:
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
you.getService(g)
}
}
2:
System.out.println(listofconcerns.length); \returns 1
System.out.println(listofconcerns[0]); \returns the string "concerns"
3:
(house has been declared and initialized at some point before this line)
int quotient = house/house;
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
4:
int anglevel = anger();
if(anglevel > threshold1) {
wait(10000);
if( anglevel > threshold2) {
wait(90000);
}
}
english computer-puzzle
english computer-puzzle
edited 3 hours ago
asked 4 hours ago
Display name
577216
577216
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
Ask not what your country can do for you...
you.getService(g)
...ask what you can do for your country.
}
}
System.out.println(listofconcerns.length); \returns 1
Our only fear ("concern") is...
System.out.println(listofconcerns[0]); \returns the string "concerns"
...fear itself
(house has been declared and initialized at some point before this line)
int quotient = house/house;
A house divided against itself...
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
...cannot stand (does not hold up)
int anglevel = anger();
if(anglevel > threshold1) {
When angry...
wait(10000);
count to ten before you speak. (wait() is in milliseconds)
if( anglevel > threshold2) {
If very angry...
wait(90000);
...count to one hundred. (we've already counted to 10 at this point, so 10+90)
}
}
Theme:
Things said by dead american presidents: Kennedy, Roosevelt, Lincoln, and Jefferson respectively.
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "559"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f77715%2fstatements-in-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
Ask not what your country can do for you...
you.getService(g)
...ask what you can do for your country.
}
}
System.out.println(listofconcerns.length); \returns 1
Our only fear ("concern") is...
System.out.println(listofconcerns[0]); \returns the string "concerns"
...fear itself
(house has been declared and initialized at some point before this line)
int quotient = house/house;
A house divided against itself...
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
...cannot stand (does not hold up)
int anglevel = anger();
if(anglevel > threshold1) {
When angry...
wait(10000);
count to ten before you speak. (wait() is in milliseconds)
if( anglevel > threshold2) {
If very angry...
wait(90000);
...count to one hundred. (we've already counted to 10 at this point, so 10+90)
}
}
Theme:
Things said by dead american presidents: Kennedy, Roosevelt, Lincoln, and Jefferson respectively.
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
add a comment |
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
Ask not what your country can do for you...
you.getService(g)
...ask what you can do for your country.
}
}
System.out.println(listofconcerns.length); \returns 1
Our only fear ("concern") is...
System.out.println(listofconcerns[0]); \returns the string "concerns"
...fear itself
(house has been declared and initialized at some point before this line)
int quotient = house/house;
A house divided against itself...
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
...cannot stand (does not hold up)
int anglevel = anger();
if(anglevel > threshold1) {
When angry...
wait(10000);
count to ten before you speak. (wait() is in milliseconds)
if( anglevel > threshold2) {
If very angry...
wait(90000);
...count to one hundred. (we've already counted to 10 at this point, so 10+90)
}
}
Theme:
Things said by dead american presidents: Kennedy, Roosevelt, Lincoln, and Jefferson respectively.
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
add a comment |
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
Ask not what your country can do for you...
you.getService(g)
...ask what you can do for your country.
}
}
System.out.println(listofconcerns.length); \returns 1
Our only fear ("concern") is...
System.out.println(listofconcerns[0]); \returns the string "concerns"
...fear itself
(house has been declared and initialized at some point before this line)
int quotient = house/house;
A house divided against itself...
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
...cannot stand (does not hold up)
int anglevel = anger();
if(anglevel > threshold1) {
When angry...
wait(10000);
count to ten before you speak. (wait() is in milliseconds)
if( anglevel > threshold2) {
If very angry...
wait(90000);
...count to one hundred. (we've already counted to 10 at this point, so 10+90)
}
}
Theme:
Things said by dead american presidents: Kennedy, Roosevelt, Lincoln, and Jefferson respectively.
public class Statement() {
void Riddle1() {
Citizen you = new Citizen();
Government() g = new Government();
\g.getService(you)
\after a code revision, I've determined the following is better:
Ask not what your country can do for you...
you.getService(g)
...ask what you can do for your country.
}
}
System.out.println(listofconcerns.length); \returns 1
Our only fear ("concern") is...
System.out.println(listofconcerns[0]); \returns the string "concerns"
...fear itself
(house has been declared and initialized at some point before this line)
int quotient = house/house;
A house divided against itself...
Boolean b = quotient == 1;
System.out.println(b); \returns false, with a compiler specific error on the result not holding up
...cannot stand (does not hold up)
int anglevel = anger();
if(anglevel > threshold1) {
When angry...
wait(10000);
count to ten before you speak. (wait() is in milliseconds)
if( anglevel > threshold2) {
If very angry...
wait(90000);
...count to one hundred. (we've already counted to 10 at this point, so 10+90)
}
}
Theme:
Things said by dead american presidents: Kennedy, Roosevelt, Lincoln, and Jefferson respectively.
answered 4 hours ago
deep thought
2,4361633
2,4361633
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
add a comment |
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
Correct. I suppose there's no way that code puzzles like these will ever be too difficult.
– Display name
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname Putting them together makes them easier, because once you get one, you get a hint to the others. However, easy doesn't mean bad, I think theme makes it better.
– deep thought
4 hours ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
@Displayname If you like code puzzles that are apparently not easy enough try <plug>this</plug>!
– WAF
13 mins ago
add a comment |
Thanks for contributing an answer to Puzzling Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f77715%2fstatements-in-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown