how to stop getting the same number when generating 2 numbers from a different class
When I run this code i get 2 numbers (which is good) but the numbers generated are the same (which is bad) and I dont want the numbers to be the same. I\'ve done this as an experiment for a rpg I was[详细]2023-04-01 02:50 分类：问答
Can't get java to round 24.9999 properly, rounds to 8.?
I\'m learning java and have a bit of code I am trying to write that should round 24.9999999 to 25. Instead, it goes to 8.[详细]2023-04-01 02:39 分类：问答
How to check how many letters are in a string in java?
How do you check how many letters are in a Java string? How do you check what letter is in a certain position in the strin开发者_Go百科g (i.e, the second letter of the string)?A)[详细]2023-04-01 02:35 分类：问答
File upload tool
I would like to create a image file upload tool. The tool when started up and would ask the user what directory they would like to monitor and upload files from. In the background the tool would then[详细]2023-04-01 02:33 分类：问答
How do I get the country code of a user on Android?
How can I retrieve 开发者_开发百科a user\'s country code on Android? Do I need permissions?To get the country code stored in the sim card of the phone you can try[详细]2023-04-01 02:27 分类：问答
In their new layout, How does youtube keep the flash video playing when you go to a users profile page from the video page?
In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash.[详细]2023-04-01 02:27 分类：问答
Switch in Java is looping
My switch statement just keeps looping.It should print the option you choose and then reprint the menu.Please help![详细]2023-04-01 02:26 分类：问答
How can I extract ARGB from a Color and convert them to byte components?
I\'m working in Java/Android and I want to take the 0xFFFFFFFF int color and break it into 4 bytes for red, green, blue and alpha. I know Color has methods for extracting specific color values, but it[详细]2023-04-01 02:12 分类：问答
What is the best technique for adding a web interface to an OSGi application?
So, I have a bunch of OSGi bundles (.jars) which perform a bunch of \"business logic\". All is good and up until now I\'ve been interfacing with the bundles using the gogo command line shell.[详细]2023-04-01 02:06 分类：问答
jdbc to my sql connectivity
This is my java code for jdbc connectivity: import java.sql.Connection; import java.sql.DatabaseMetaData;[详细]2023-04-01 02:03 分类：问答