[Solved] The shortest java code [closed]

Almost correct: System.out.println((int)Math.signum(input.nextInt() – input.nextInt()); “Almost” due to possible integer overlow. Also your longer code might actually be faster (signum() operaton on floating-point numbers), not to mention more readable. 1 solved The shortest java code [closed]

[Solved] how to solve this type of compilation error?

Make all of your fields static if you are just calling them from the Main class. You can’t call an instance field from a static position, as you aren’t currently in an instance. If you wish to keep them non-static, you have to make an instance of DjPageDownloader by putting it in a constructor, and … Read more

[Solved] How to get output with println()

If you want to use 0 and 1, here you go: Scanner scanner = new Scanner(System.in); boolean p = scanner.nextInt() != 0; boolean q = scanner.nextInt() != 0; boolean r1 = p && q; boolean r2 = q == r1; boolean r3 = p == r2; System.out.println(r3 ? 1 : 0); solved How to get … Read more

[Solved] My wordpress website is not listed in google [closed]

The reason it is not being indexed is because of this in head <meta name=”robots” content=”noindex,nofollow”> That will say not to index the website, remove it and it should start to get indexed/crawled….I think you might need to look into the basics of SEO. EDIT: To remove that line either: Open the header.php file and … Read more

[Solved] C++ pow(400,-9) is giving wrong answer [closed]

calculator output of 4E-7 You entered the wrong calculation into your calculator. You entered 400×10-9, instead of 400-9.These are absolutely not the same thing! The C++ program is correct: pow(400, -9) calculates 400-9, which is approximately 3.815×10-24. Here is some further reading for you: http://en.wikipedia.org/wiki/Scientific_notation#E_notation 7 solved C++ pow(400,-9) is giving wrong answer [closed]