{"id":16415860,"url":"https://github.com/donno2048/confusing","last_synced_at":"2026-05-18T05:01:48.690Z","repository":{"id":48366073,"uuid":"333606394","full_name":"donno2048/Confusing","owner":"donno2048","description":"A weird confusing java cheat","archived":false,"fork":false,"pushed_at":"2021-07-31T20:18:17.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T16:50:47.563Z","etag":null,"topics":["1","bug","cheat","confusing","obfuscation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donno2048.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-28T01:10:47.000Z","updated_at":"2021-09-21T19:42:23.000Z","dependencies_parsed_at":"2022-09-14T20:22:48.011Z","dependency_job_id":null,"html_url":"https://github.com/donno2048/Confusing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donno2048%2FConfusing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donno2048%2FConfusing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donno2048%2FConfusing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donno2048%2FConfusing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donno2048","download_url":"https://codeload.github.com/donno2048/Confusing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466792,"owners_count":19805862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1","bug","cheat","confusing","obfuscation"],"created_at":"2024-10-11T07:07:19.117Z","updated_at":"2025-10-14T12:04:22.517Z","avatar_url":"https://github.com/donno2048.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Print 1 in every position **except** position number 1 (where it supposed to print 1)\n\nYou can give it an input as a command line argumet, this will be the number of ones printed.\n\nDownload from the terminal:\n\n```bash\n$ wget https://raw.githubusercontent.com/donno2048/Confusing/main/Main.java\n```\n\nTry looking in the terminal to see what is going on:\n\n```java\n$ cat Main.java\nimport java.lang.reflect.Field;\nimport java.util.Random;\npublic class Main {\n\n\n        public static int j = 100;\n        public static void main(String[] args) {\n\n\n                if (args.length \u003e 0 \u0026\u0026 args[0].length() \u003e 0)\n                        j = Math.min(Integer.parseInt(args[0]) + 1, j);\n                for(int i = 1; i \u003c j; i ++)\n                        System.out.printf(\"%d\", i);\n\n\n       }\n\n\n}\n\n\n\n$ javac Main.java\n$ java Main;echo\n211111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\n$ java Main 10;echo\n2111111111\n```\n\nThere's a [\"Demo\"](http://donno2048.github.io/Confusing/index)\n\nThere is another similar code in _HelloWorld.java_ get it with wget\n\n```bash\n$ wget https://raw.githubusercontent.com/donno2048/Confusing/main/HelloWorld.java\n```\n\nThen run it:\n\n```java\n$ cat HelloWorld.java\nimport java.util.Random;\n\npublic class HelloWorld\n\n{\n\n        public static void main(String[] args)\n\n{\n\n}\n\n}\n\n$ javac HelloWorld.java\n$ java HelloWorld\nhello world\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonno2048%2Fconfusing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonno2048%2Fconfusing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonno2048%2Fconfusing/lists"}