Hey Guys! So... I left my PC back home when i went off to college and now that I'm back for summer, it seems that it has missed me because it doesn't work anymore. **First Problem:** When I tried to switch it on, it would start to boot (I'd see the fans try to spring to life) and then it would immediately switch itself off. **What I Tried:** 1. Removed peripherals and reseated all the hardware (RAM sticks, video card, CPU, etc.) -- No luck 2. Reset BIOS to eliminate overclocks. (removed battery) -- No luck 3. Took the motherboard, …

Member Avatar
Member Avatar
+0 forum 2

Hello All I'm not quite sure you can do this but it seems to me like something python is probably able to do. Basically, I need to assert that somewhere in my list of lists i have a '2', and a '1'. Now my lists in the biglist are all the same length. By which i mean that len(BigList[i]) == len(BigList[i+1] for all valid indicies i. I was just thinking something like this: [CODE][element for element in SmallList for SmallList in BigList][/CODE] I understand why this doesn't work, but for some reason, i'm pretty sure that it can be done …

Member Avatar
Member Avatar
+0 forum 4

I've been writing a piece of code that will use a brute force approach to find 50 exponential equations that fit 5 points (x,y) that i've entered. The code is fine and works without a glitch.. The problem is when i try to make it keep a record of the 50 best equations. This sort routine is the one i've been using.. I've put it in its own test class just to make easier to follow. The current problem is it ends up displaying something completely unwarranted and the array ends up with only two different values. [CODE]public class sortTest{ …

Member Avatar
+0 forum 0

Hello all, This is a very simplistic simulation but i'm hoping to show bacterial growth using this simple piece of code. [CODE]public class Bacteria { boolean living; Bacteria x; int population; public void spawn() { living = true; try{ Thread.sleep(2000); } catch (InterruptedException e ) {} Fission(); try{ Thread.sleep(100000); } catch (InterruptedException e ) {} Die(); } private void Fission() { x = new Bacteria(); x.spawn(); } private void Die(){living = false;} private boolean Check(){return this.living;} private boolean ping(){return x.Check();} } [/CODE] The idea is that if i initialize one object of the Bacteria class and run the spawn() module …

Member Avatar
Member Avatar
+0 forum 5

So I'm working on a database-type program for the Java course that i'm doing and i seem to have run into a bit of a roadblock. This class compiles and runs alright but where i have a problem with it is when i try to amend the text file using the same class. All it does is overwrite whatever is on the txt file. I've tried to include a method that reads the text file first and then includes the contents in the output but i cant get it to work because the second i use Formatter.format(Scanner(system.in)) (if that makes …

Member Avatar
Member Avatar
+0 forum 2

So i'm trying to make a module for my program that returns a multidimensional array based on another array in the form of a command-line argument. Here is the module that's keeping me up at night: [CODE]public static double[][][] getDimensions(String [] args) { final int l = args.length; double dimensions [][][] = new double[1][l][l]; for(int count = 0; count<l; count++) { if(args[count].equals("NA4")) dimensions[count][count][count] = {20.6, 15.7, 12}; if(args[count].equals("NA5")) dimensions[count][count][count] = {17.6, 15.7, 12}; if(args[count].equals("NA1")) dimensions[count][count][count] = {45, 18.5, 15}; if(args[count].equals("NA2")) dimensions[count][count][count] = {32.6, 17, 15}; else dimensions[count][count][count] = {14.5, 9.8, 7.1}; } return dimensions; }[/CODE] The error i get is …

Member Avatar
Member Avatar
+0 forum 4

Hi Everybody, I'm currently doing a Computer Science IB course in which I'm required to create a java program of my choice. I'm quite new to java but i still chose something i thought would be cool and it turned out to be a little harder than i thought. As part of my program i want to offer the abilit yfor a user to connect to a wifi network but i cannot see any evidence on the web of this even being possible. If anone has some ideas, please let me know. Thanks in advance!

Member Avatar
+0 forum 0

The End.