Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
8
Posts with Upvotes
8
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #1K
~34.1K People Reached
About Me

High school student

PC Specs
MacBook Pro 17", 2.5 GHz Intel Core 2 Duo, 2 GB RAM, 1920x1200 LED-backlit display
Favorite Tags
Member Avatar for moderate_rock48
Member Avatar for iamthwee

Does anyone have a sample fully working code, that demonstrates how to change the mouse cursor picture when moved over a certain area in a program? [edit] just to clarify change it to a mouse cursor I designed myself[/edit] ThanQ

Member Avatar for maquaree
0
586
Member Avatar for soultrav

How do i compare an object with null? From what i've seen right now, at execution an NullPointerException will be thrown :S For example, if I have a list: [code=java] class List { private Node data; private Lista urm; public List(Node d,Lista u) { data = d; urm = u; …

Member Avatar for Zibo
0
7K
Member Avatar for manisha

Hi friends. I am trying to install Ruby on rails on Linux platform.The OS i am using is Ubuntu. I am new to both Linux and RoR .So really need help.Here is the code i tried to run and the result : [QUOTE]manisha@manisha-desktop:~$ sudo gem install rails --include-dependencies /usr/bin/gem:11:Warning: Gem::manage_gems …

Member Avatar for MrAntonio
0
149
Member Avatar for Debadipta

I'm facing a problem while installing rails. I tried with the following commands individually but failed. They are: 1) gem install rails --include-dependencies 2) gem install rails -v=1.8.6 Error messages displayed: Could not find rails in local or repository Could not find ...... "http://gem/......" One more doubt is that is …

Member Avatar for destin
0
67
Member Avatar for yadavshubhanshu

[CODE] ....... ........... 1.upto(n){ str = gets.chomp if str.length > max max = str.length maxstr = str elsif str.length = max if str > maxstr maxstr = str end end } ........... [/CODE] this piece of code is giving me an error in the elsif line saying that [undefined method …

Member Avatar for destin
0
54
Member Avatar for Soloz

Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways... Code: Object [] options = {"Course I do!", "Not Really"}; int n = JOptionPane.showOptionDialog (frame, "Do you Understand?", "Easy Question", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, //do not use …

Member Avatar for stultuske
0
74
Member Avatar for BestJewSinceJC

Is there any way that I can take a String and somehow use it as if its the name of one of my declared Objects? For example, if I have an Animal named germanShephard, is there some way I could say String gerSh = "germanShephard"; and then treat gerSh as …

Member Avatar for ~s.o.s~
0
196
Member Avatar for VernonDozier

I have an applet that is not initializing: [code=JAVA] import javax.swing.*; public class WordSearchApplet extends JApplet { public WordSearchApplet (int width, int height) { } public void init () { new WordSearchApplet (700, 800); } } [/code] Here is the error I get. [quote] load: WordSearchApplet can't be instantiated. java.lang.InstantiationException: …

Member Avatar for VernonDozier
0
102
Member Avatar for MrDiaz

Hello, I'm creating a subclass from an already defined class. Let's say I have a class called Student and it has a default constructor. Now I want to create a child class of Student, but when I create it, it seems that it's taking the constructor instead of the actual …

Member Avatar for MrDiaz
0
87
Member Avatar for cbickle

i am in a first semester programming class and this probably might seem like a dumb questino to everyone here but i have been working on this for along time and cant seem to come up with anything. i am stuck on 2 programs. the first is to ask for …

Member Avatar for cbickle
0
103
Member Avatar for janamrob

How can I override a method in a base class without using the @Override sign? For example the class Human below overrides some methods in the class Mammal. Do print the output correctly without @ signs in objects. Convert them correctly before outputting. [code]import java.util.*; public abstract class Human extends …

Member Avatar for destin
0
119
Member Avatar for Fiery Demon

Hi there, I have an assignment due in a couple of days and I need some help. I don't have time to read a Java books. Plus, my teacher is useless as he can't explain anything...and the TAs are worst. My error is in line 145 (scroll down) saying "illegal …

Member Avatar for VernonDozier
0
118
Member Avatar for stevenp123

Hi, I am having some trouble with arrays. I have an array of 5 elements. The values of the array are integers. I want to validate the input using an if statement. (the numbers must be between 10 and 100). I then want to compare the user input to the …

Member Avatar for destin
0
89
Member Avatar for kinger29

Is there any such thing as destructors in ruby. I am trying to figure out how to destroy an object.

Member Avatar for destin
0
106
Member Avatar for AceAtch

Hi all, I have an assignment to hand in tomorrow for programming and would appreciate any help that is given. I have done a couple of years programming with VB but java is like on a completely level compared to it. Ok, so basically I have to program an application …

Member Avatar for javaAddict
0
175
Member Avatar for philmetz

Hi How can i get a recursive function like this to work: It should find the sum, then print the sum out inside the function. [CODE] public static int myMethod(int counter) { int sum = 0; if(counter == 0) return 0; else { sum = sum + myMethod(counter-1); System.out.println("Sum is …

Member Avatar for destin
0
90
Member Avatar for Koldsoul

I am writing a method (public static void reverse(String word)) that accepts a String as an argument, then returns the word in reverse order. The easy way would be to just have the recursive method print each letter but that wouldn't be my instructor. He wrote the main and the …

Member Avatar for bobocqu
0
112
Member Avatar for tonief

I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { …

Member Avatar for tonief
0
449
Member Avatar for onidarksheik

I'm currently writing a program that requires me to check several char values using a while statement and I keep getting the error "operator || cannot be applied to char, char". My code works fine with a single value but as soon as I add || or && I get …

Member Avatar for onidarksheik
0
1K
Member Avatar for dipsn

Thank you for reply. Actually I want to hash the URLs that I crawl and to index them. That's why I want the guidance on hashing.

Member Avatar for destin
0
71
Member Avatar for dimples09

I have this program and I have made the changes. Now I am trying to implement the stack within my code and im confused. I need to push the environment_types onto the stack but I dont know how. Here is what I have [code=syntax]int X=0, Y=0, Z=0 ; /* Evironment …

Member Avatar for destin
0
71
Member Avatar for MrDiaz

Hello, I'd like to create a function that accepts two objects and compares properties between them. Example [code=java]public boolean (obj1, obj2){ if obj1.property1 = obj2.property2 return true else return false } [/code] How can I do this?

Member Avatar for MrDiaz
0
113
Member Avatar for vladdy191

I'm trying to read in a text file character by character. However, when I try to read it in it using the readChar method in DataInputStream it gives me a IOException. Heres what I have so far [CODE] FileInputStream stream; try { // Open an input stream stream = new …

Member Avatar for destin
0
429
Member Avatar for AirmanTheGreat

Sorry to everyone, I figured this out just after I posted, But i do still have another question, For a certain operation I am required to use log's in determining a variable for example Var3=log(Var1/Var2)/log(8) but java doesnt seem to accept log. What is the appropriate way to use logarithm? …

Member Avatar for destin
0
68
Member Avatar for NycNessyness

Hello everyone. I wanted to know how I could create a simple time restriction variable. For example making private double hour; not go over 2:59. Basically I don't want someone to be able to input a number greater than :59 in a Jtextfield. I can do a time application, but …

Member Avatar for destin
0
101
Member Avatar for llemes4011

I don't know how to word this very well, so please bear with me... Is there any way to get a java program to respond in different ways to the results of other programs? Like, if an integer in the other program (not written in Java) is greater than say, …

Member Avatar for llemes4011
0
199
Member Avatar for smakos

please i am a final year student in one of the universities in UK and and i am developing a school portal for a secondary school as my final year project and the portal b/c of time i have narrowed to down the scope of the project to only handle …

Member Avatar for bobocqu
0
102
Member Avatar for yawjava

hi my remove node is not working....can someone help me correct it // Polynomial.java public class Polynomial { private int degree; private Node head; public static Polynomial addPolys(Polynomial poly1, Polynomial poly2) { Polynomial polyRes = new Polynomial(); int power = (poly1.degree > poly2.degree) ? poly1.degree : poly2.degree; while (power >= …

Member Avatar for destin
0
139
Member Avatar for dipsn

I m working on a crawler and want to hash the urls that my crawler is crawled already. I have used hashcode() function but it is returning a null value. Is there any other efficient way for hashing them .Also i want to know abt hash functions related with string …

Member Avatar for destin
0
69