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...
Type: Posts; User: samy109
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...
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...
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;
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...
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...
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 ...
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...
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...