# Search:

Type: Posts; User: samy109

1. ## Thread: Navigating a 2d array, as in x and y coords(HELP)

by samy109
Replies
1
Views
186

### Navigating a 2d array, as in x and y coords(HELP)

Hello all, i'm currently trying to create an alife program which simulates the life of a single organism, and its actions of eating, drinking and etc. I've already created the basic framework(pretty...
2. ## Thread: How to iterate through a numbers digits?

by samy109
Replies
2
Views
298

### How to iterate through a numbers digits?

I'm just wondering a simple question. Let's say you have number 4354654756, how would you iterate through each digit, temporarily storing that digit to another variable for analysis, and then...
3. ## Thread: Dividing inside a for loop. Lolwtf?

by samy109
Replies
6
Views
321

### Re: Dividing inside a for loop. Lolwtf?

This is my code:

package sumsof3sand5s;

public class app {
public static int a;
public static int x;
public static int b;
public static int c;
4. ## Thread: Dividing inside a for loop. Lolwtf?

by samy109
Replies
6
Views
321

### Re: Dividing inside a for loop. Lolwtf?

Thanks a bunch. Now my next question, i'm asking this because i'm doing the project euler first problem, and I am COMPLETLY mind boggled at the awnser. It asks what is the sum of the multiples of 3...
5. ## Thread: Dividing inside a for loop. Lolwtf?

by samy109
Replies
6
Views
321

### Dividing inside a for loop. Lolwtf?

I have a for loop which looks like so: for(int x = 0; x<=1000; x++){ System.out.println(x/3); }

Now for some insanely strange reason, when I run the code, it repeats the awnsers however many...
6. ## Thread: Cannot figure this out at all... Someone mind giving me a helping hand?

by samy109
Replies
7
Views
576

### Re: Cannot figure this out at all... Someone mind giving me a helping hand?

Can you please show an example of how i'd do that? and yes that's EXACTLY what I want, it will read each line which consists of characters/characters/characters:/copy this//copythis:stopcopying here ...
7. ## Thread: Cannot figure this out at all... Someone mind giving me a helping hand?

by samy109
Replies
7
Views
576

### Re: Cannot figure this out at all... Someone mind giving me a helping hand?

Well I was told by someone that regex is what I needed.. but I have no idea what to do so I havn't even started yet. All i'm trying to do is 1. Read a text file line by line 2. On each line, copy...
8. ## Thread: Cannot figure this out at all... Someone mind giving me a helping hand?

by samy109
Replies
7
Views
576

### Cannot figure this out at all... Someone mind giving me a helping hand?

I'm trying to make a textfile reader, which reads a text file line by line, and then copys everything past the fourth : and stops before the last : and then makes a list of what it copys in another...
Results 1 to 8 of 8