Not sure what you mean by using the -Xlint option. I compiled it with -Xlint and I looked at the warnings already which didn't really make sense to me because as I mentioned before I'm quite new to...
Type: Posts; User: kassavetova
Not sure what you mean by using the -Xlint option. I compiled it with -Xlint and I looked at the warnings already which didn't really make sense to me because as I mentioned before I'm quite new to...
Nevermind, I didn't know it would still run if I tried it so I don't really care about the warnings anymore, thanks.
Yep I tried this but I haven't really encountered warnings of this type. To be frank never really encountered warnings when compiling a program at all... I am quite new to java so I guess that's why....
Oh I see, okay. Any idea why I'm getting the error in the above example?
Thanks Junky, used another loop outside the first one and it worked.
@Norm, I looked at the doc material but I was a bit confused on how to actually use the shuffle method so I googled it and most...
Hi guys, so I have the following piece of code:
public class Test{
public static void main (String args[]){
int[] myList = {1,2,3,4,5};
for (int i = 0; i <...
Ok so I understand what you are trying to say but I still cannot see the problem myself so I tried this with a nested loop on top of the rest of the code anyway:
for(int k = 0; k <...
Anybody who knows what causes the problem described in OP?
Thanks
No worries, I managed to figure it out ! :)
thank you. Have found a solution, not sure why I never thought of this before!
for (int i=1; i<=Integer.parseInt(args[0]); i++)
{
if (i%15==0)
You know what the point I was making is so either that's the only thing you read or you're really not here to help people but to waste your time writing useless sarcastic posts. Hope it was worth it
Hello,
I was trying to write a program that checks if any of the numbers that the user inputs are divisible by 3 5 or both. If the number is divisible by 3 it prints out "Fizz", if divisible by 5...
My question is in regards to my code below. Basically, I've come to the point when I am using too many if's and else's and my program gets confused. The point of the first if is to check if the...