- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
High school student
- PC Specs
- MacBook Pro 17", 2.5 GHz Intel Core 2 Duo, 2 GB RAM, 1920x1200 LED-backlit display
Re:
lets waste some web space by counting i will start us off 1 | |
|
Re:
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 |
Re:
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; … | |
Re:
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 … | |
Re:
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 … | |
Re:
[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 … | |
Re:
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 … | |
Re:
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 … | |
Re:
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: … | |
Re:
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 … | |
Re:
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 … | |
Re:
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 … | |
Re:
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 … | |
Re:
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 … | |
Re:
Is there any such thing as destructors in ruby. I am trying to figure out how to destroy an object. | |
Re:
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 … | |
Re:
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 … | |
Re:
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 … | |
Re:
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() { … | |
Re:
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 … | |
Re:
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. | |
Re:
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 … | |
Re:
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? | |
Re:
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 … | |
Re:
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? … | |
Re:
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 … | |
Re:
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, … | |
Re:
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 … | |
Re:
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 >= … | |
Re:
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 … |