Search Results

Showing results 1 to 29 of 29
Search took 0.01 seconds.
Search: Posts Made By: indienick ; Forum: Java and child forums
Forum: Java Dec 10th, 2007
Replies: 1
Views: 2,096
Posted By indienick
Could you please provide the code that dictates the decryption? I would normally ask only for certain parts of code, but I would need to see the whole thing to figure out where it's messing up.
...
Forum: Java Dec 10th, 2007
Replies: 2
Views: 2,046
Posted By indienick
I haven't written any I/O Java code in a while, but I do remember using java.io.PrintStream which is a buffered stream, so you don't need to create a whole mess of inline class instances.


import...
Forum: Java Aug 7th, 2007
Replies: 32
Views: 6,164
Posted By indienick
For small to moderately-sized projects, I've stuck with Emacs and a terminal emulator.

For larger projects, I found Eclipse was too....busy, and I switched to Netbeans recently and am quite happy...
Forum: Java Aug 7th, 2007
Replies: 5
Views: 977
Posted By indienick
If you're looking to create mobile applications (when I hear "mobile" I think cell phones, PDAs, etc.), then you will need a J2ME SDK (Java 2 Mobile Edition), and a Java-enabled device. Finding a...
Forum: Java Aug 5th, 2007
Replies: 9
Views: 10,007
Posted By indienick
Forum: Java Aug 5th, 2007
Replies: 9
Views: 10,007
Posted By indienick
The only thing I use for input on the CLI is java.util.Scanner.


import java.util.Scanner;

public class Input {

private Scanner scanner;
private String ps = "> ";
Forum: Java Aug 5th, 2007
Replies: 14
Views: 2,303
Posted By indienick
So?

I learned Java just so I knew at least one, non-Smalltalk-based, OOP language.

I'm still making use of other classes within the program (javax.swing.JFrame, javax.swing.JButton, etc.). I...
Forum: Java Aug 5th, 2007
Replies: 14
Views: 2,303
Posted By indienick
What you've got is a good start. Here's how I would do it:

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class GuessGame extends JFrame {

private static JButton...
Forum: Java Aug 5th, 2007
Replies: 14
Views: 2,303
Posted By indienick
Sweet. :)

Alright. I looked over the code you have, and I would do it much differently than you have done it (while still staying within the requirements).


Get rid of the constructor for the...
Forum: Java Aug 4th, 2007
Replies: 5
Views: 2,680
Posted By indienick
Forum: Java Aug 4th, 2007
Replies: 14
Views: 2,303
Posted By indienick
That's fine, but having the loop repeatedly call Integer.parseInt() is just going to re-parse the first number it comes across (if they're separated by spaces) or it will just mush all of the...
Forum: Java Aug 4th, 2007
Replies: 5
Views: 2,680
Posted By indienick
There is no atomic "type" in Java.

All of the classes in the java.util.concurrent.atomic package have the "Atomic" prefix in their names.

All of those classes "...provide atomic access to...
Forum: Java Aug 4th, 2007
Replies: 14
Views: 2,303
Posted By indienick
One thing I would not do is declare a variable inside of a loop:

...
for (int i = 0; i < 5; i++) {
int n = Integer.parseInt(t.getText());
...
Put this instead:

public void compare(int x)...
Forum: Java Jan 21st, 2007
Replies: 7
Views: 1,494
Posted By indienick
Java's a good start.
After a while, but before you get comfortable with any language, I recommend you check out Lisp.

Lisp is pretty much the language for multiple solutions for any given problem...
Forum: Java Aug 23rd, 2006
Replies: 5
Views: 4,810
Posted By indienick
I was just getting too bogged down trying to fix the old code, so I decided to start fresh, and guess what - I got it!

// Eratosthenes Prime Number Finder Algorithm
/**
* @author Nick Saika
*...
Forum: Java Aug 23rd, 2006
Replies: 5
Views: 4,810
Posted By indienick
I'm just using a small value of 10.

Pretty much, what I'm writing (as to help me learn Java) is a Sieve of Eratosthenes (http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes), it's a prime number...
Forum: Java Aug 23rd, 2006
Replies: 5
Views: 4,810
Posted By indienick
...I'm sorry hooknc, I don't see how I'm making an array of zero length - the size of the array is set by limit which is specified from the users first argument.

And, yes, array elements do start...
Forum: Java Aug 22nd, 2006
Replies: 5
Views: 4,810
Posted By indienick
Is there a way in Java to assign values en masse to an array?

To give an idea of what I'm trying to achieve, in Perl, you can do: @listofvalues = (1..$anynumber); to add (in this case) all digits...
Forum: Java Jul 27th, 2006
Replies: 4
Views: 2,566
Posted By indienick
Ok, I fixed the whole sizing issue by throwing the table into a ScrollPane :cheesy:
Forum: Java Jul 27th, 2006
Replies: 4
Views: 2,566
Posted By indienick
Ok, I used this tutorial (http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#data) from Sun, but a problem quickly arose: I need to be able to read data from a file and then...
Forum: Java Jul 27th, 2006
Replies: 4
Views: 2,566
Posted By indienick
Alright, thanks, hooknc. I'll change it up, and post my results. :cheesy:
Forum: Java Jul 27th, 2006
Replies: 4
Views: 2,566
Posted By indienick
I'm trying to list some data gathered from files into a JTable - here's the code I'm using:

/* Packages listed in a JTable */
Object[] columnNames = {"Package", "Version",...
Forum: Java Jul 25th, 2006
Replies: 4
Views: 1,585
Posted By indienick
Thanks for the help guys (and quite possibly girls).

The method which you proposed, hooknc, is the same model that's used in a Java book I have. What I've done is created a separate class that's...
Forum: Java Jul 24th, 2006
Replies: 2
Views: 1,587
Posted By indienick
Thanks for the reply, iamthwee, but I'm only asking on here because I've yet to find a googled search result that has yielded anything useful to me (and in a more grammatical, less syntatic way).
...
Forum: Java Jul 24th, 2006
Replies: 4
Views: 1,585
Posted By indienick
I have a question about creating my own custom classes. I want my own class - NButton. The idea of this class was to quickly make JButtons, by adding my own custom argument sets. Here's my prototype...
Forum: Java Jul 24th, 2006
Replies: 2
Views: 1,587
Posted By indienick
This post is asking ALOT, but I'm not expecting one person to leave me a hefty response, so any bits of widsom and knowledge are MUCHLY appreciated.

Could someone(s) please explain to me (in...
Forum: Java Jul 22nd, 2006
Replies: 6
Views: 10,654
Posted By indienick
Thanks alot for your replies :D
Forum: Java Jul 21st, 2006
Replies: 6
Views: 10,654
Posted By indienick
Ok, I know this is a stupid-easy question, but how do I "gather" (best word I could think of) an image?

JFrame frame = new JFrame();
Image programIcon = (...?...);...
Forum: Java Jul 21st, 2006
Replies: 17
Views: 2,982
Posted By indienick
I might suggest picking yourself up a copy of 'Beginning Programming with Java for Dummies"...and if you're feeling particularily sassy, O'Reilly Java In A Nutshell. It's all the reference you'll...
Showing results 1 to 29 of 29

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC