Search:

Type: Posts; User: samy109

Search: Search took 0.06 seconds.

  1. 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. Replies
    2
    Views
    1,362

    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. Replies
    6
    Views
    1,412

    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. Replies
    6
    Views
    1,412

    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. Replies
    6
    Views
    1,412

    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. 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. 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. 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