- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
35 Posted Topics
Haskell ain't that hard. Fibonnaci ain't that hard. Zellers Congruence ain't that hard. But I love programming.
Well show us what code you've got! Noone's gonna do it for ya.
That method is pretty similar to the printf() method of String. What you could also do is, if you only have a couple of things, you could tab them, ie: System.out.println( "Blah\tBlah" ); would give you an output like: Blah Blah
[code=java] public static boolean winner (String z[][]) { if ( ( z[0][0]=="X" && z[0][1]=="X" && z[0][2]=="X" ) || ( z[1][0]=="X" && z[1][1]=="X" && z[1][2]=="X" ) || ( z[2][0]=="X" && z[2][1]=="X" && z[2][2]=="X" ) || ( z[0][0]=="X" && z[1][0]=="X" && z[2][0]=="X" ) || ( z[0][1]=="X" && z[1][1]=="X" && z[2][1]=="X" ) || …
Ask in the Databases forum??
My Smax list: 1. RockShox Argyle 318 fork 2. Evil Imperial SL frame 3. HTC TYTN 2 Phone 4. A working chain for my road bike.
I would say start with some basic html, move onto java/C and if your feeling up for a challenge, try haskell, if you can program in haskell you can program in anything!!! Good Luck
you could use: [code=java] if( ln.charAt(0).equalsIgnoreCase( 'a' ) ) blah; [/code]
Hi all, ain't been here in a while, busy busy busy with college... I have an assignment on threads for Operating Systems, I can't actually see how it relates to OS but it is thread based, I haven't worked with threads before, but I have it finished to the best …
Well the basic way of getting time in a program is to use long x = System.getCurrentTime(); which returns the current time of the computer in milliseconds. Anyone with a brain could figure it out from there! :p
ie: [code=java]String s = "whatevernuber"; double d = Double.parseDouble(s);[/code]
Stick it under an extremely wobbly table to add stability.
Hey all, I'm not gonna ask for help with code or anything. What I would like is some help with an idea for a project I have, it's for college. Basically the spec for it is: Design a new keypad for a phone, to type sms' with one finger, and …
This is a not as messy solution, one loop, one trial, coupla Scanners created, but thats ok ( while it's not really good practice ), its ok because java gets rid of any variables that aren't referenced anymore! [code=java] import java.util.*; import java.io.*; public class TypeTest { public static void …
pm me yer e-mail and ill send you an app with nearly all interrupts and some other stuff in it. very handy.
First of all, here's my codes: [code=java] public class SLLNode { protected Object element; protected SLLNode succ; protected SLLNode( Object elem, SLLNode successor ) { element = elem; succ = successor; } } [/code] [code=java] public class LinkedStack { private SLLNode top; public LinkedStack( ) { top = null; } …
ye have an extra parenthesis there above //other methods, so you have in effect finished your class there!!! get rid of it and ye should be fine mate.
My dad has the Dune series, never got into it myself but he swears by it? Anyone ever read Swansong? No theres a class book, and the Belgariad? Read them when I was a childerbeast, never forgot them. Anyway yeah my hobbies are reading, programming, gym (i really need to …
herrrooo! My dad's originally from Cleveland (I think), Ohio!!!
an String [] with the months in it, the year should be alright if your reading it from the user. Then a switch or if/else statementst to capture the day numbers like 1st, 2nd and then concatenate all of it.
Thats a lot better mate, similar to what I've done for you, heres the first class. Tis pretty self explanatory: [code=java] public class PizzaOrder { protected String size; //Size of pizza protected boolean toBeDelivered; //Is the pizza being delivered protected int count; //Dunno what this is for tbh protected double …
you could use a couple of compare statements to compare the values and then print out the ascii equivalents
I went as a HAZMAT person, but the best I saw was either someone dressed as a durex machine, or someone else dressed as a tampon.
Hey there, I'll just give you a few pointers here: [code=Java] public static double distance (double x1, double y1, double x2, double y2, double z, double y3, double x3) { y3 = (y2 - y1); y3 = Math.pow(y3, 2); x3 = (x2 - x1); x3 = Math.pow(x3, 2); z = …
[CODE=Java] public class Fan { /** * A class to represent a fan, whether it be on/off, with varying speeds, fan size and colors. */ //Main method shouldn't have been here, this class is for your object. //Global variable declarations private fanSpeed; private double radius; private Color fanColor; private boolean …
Hey all, I was wondering could anyone give me any help on TASM, with regard to the in libraries, i.e. int 10h, int 21h etc cause, ive been out of college for a year, and im back now, and im finding it hard to get used to this malarky again, …
Hey everyone! Mick here, I'm a 2nd year Computer Applications student from Ireland, found this place by accident, but it seems fairly well done, so I joined! About me: Love 1: Mountain Biking. Love 2: Programming, Last year ( my first second year ) I chose IS - Information Systems, …
Just a personal rule here: In my opinion you should never initiate a variable while using comma's, i.e. [code=java]double price = 0, total = 0, blah... [/code] It should be done like so: [code=java] double total, price, count; total = 0; price = 0; count = 0; [/code] or like …
Sitting down and trying is really the only answer, GUI's are things that are best learned by yourself, cause they're tricky buggers to start with. May I suggest that you start small, display a simple javax.swing.JFrame, or java.awt.Frame and then mess around with it, set titles, change sizes, display a …
The End.
mickinator