No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hey everyone, Im working on a few java programs for a class and this one i can't seem to find an answer anywhere for. I need to write a program that roll's a dice, which is simple, then i have to have it roll the dice 20 times. Also simple. … |
|
I need to write a function that takes in an array of integers and an integer, checks if the sum of any of the numbers in the array is equal to the supplied integer. Any ideas would be much appreciated. |
|
Re:
Hi, I was recently asked this question in an interview and I was wondering if any of you could help me find a better solution to this problem. The question goes like this: There is a function foo which takes two arguments: an array "a" of type int and another … |
|
Here is a starter program that prints prime factors of a supplied numbers as a string.It's quite buggy as the input 8 yields 1.2.4 when what i wanted is 1.2.2.2 and I don't understand why the return in line 32 (commented) is not executed. [code=java] //program to compute prime factors … |
|
Simple program to check whether a number is prime or not. Something is seriously wrong because every result I get is 'false'. Help me out please. Thanks in advance. [CODE] class primeTesting { public static void main(String[] args){ int i=7; //changing the value everytime always gives false.... ??? boolean bool=false; … |