From 6d6beb3607a873f288a709c434074a5be048f89f Mon Sep 17 00:00:00 2001 From: mtthwn Date: Fri, 7 May 2021 20:29:06 -0400 Subject: [PATCH] adding initial list of java quotes --- static/quotes/code_java.json | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 static/quotes/code_java.json diff --git a/static/quotes/code_java.json b/static/quotes/code_java.json new file mode 100644 index 000000000..b4f6b80dc --- /dev/null +++ b/static/quotes/code_java.json @@ -0,0 +1,47 @@ +{ + "language": "code_java", + "groups": [ + [0, 100], + [101, 300], + [301, 600], + [601, 9999] + ], + "quotes": [ + { + "text": "System.out.println(\"Hello World\");", + "source": "Print Hello World - programming-idioms.org", + "id": 1, + "length": 34 + }, + { + "text": "void finish(String name){\n\tSystem.out.println(\"My job here is done. Goodbye \" + name);\n}", + "source": "Create a procedure - programming-idioms.org", + "id": 2, + "length": 89 + }, + { + "text": "int square(int x){\n\treturn x*x;\n}", + "source": "Create a function which returns the square of an integer - programming-idioms.org", + "id": 3, + "length": 33 + }, + { + "text": "for (int i=0; i