- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Telecom Engineer
16 Posted Topics
Re: What you would need to do (from the top of my head) is to see if the lefthand factor (i in your example) matches the previous righthand factor (j in your ex.). As soon as i matches the j, we are finding the mirrors of the previously found factors and … | |
Re: [QUOTE=ajay_p5;1019844]Hi, Well I am getting this warning while running my script which is attached:Use of uninitialized value in concatenation (.) or string at aj.pl in this line : print OUTFILE"$address[$k]|" as when i remove this line I don't get any warnings: Can someone please tell me what is wrong with … | |
Re: So i'm 'The Emperor' which sounds OK. (Hmm, need to update my chef about my newly aquired status.) Nice, but what do i do with all that responsibility 8-) | |
Re: OK, as i was bored i had a quick look. In GuessWord.java you have : [code] private String[] hiddenWord = new String[word.length()]; [/code] This is a instance variable which is created as the constructor executes but BEFORE any parameters have been initialised, so 'word' does not exist here. [null exception] … | |
Re: Well, the JVM is telling you that the last 4 characters of your string are not a number. So.... | |
Re: What's the exception and the sourcelines you have a problem with? | |
Re: The easiest way for this, and i think the most used, is to create an instance of your class and run the methods using that. So it would be something like : [code] public class Schedule { Vector ch1Time = new Vector(); Vector ch2Time = new Vector(); //Default constructor public … | |
Re: Right you are. As far as i can see you are missing a closing brace just before public void makedeposit, leading the compiler to think you are defining a method inside another method. Tnx | |
Re: I assume you have problems with this bit : [code] class MenuListener implements ActionListener{ public void actionPerformed (ActionEvent e){ if(e.getSource() == displaySchedule){ Database.viewAll(); } else if(e.getSource() == displayAll){ textField.setText("Open an existing file"); } [/code] you call 'Database.viewAll();' which is a call to a static method in the Database class. However … | |
Re: I think the problem is that : [code] public void Complex(double x, double y) [/code] is not a constructor. A constructor does not have a return type, and yes, even void is a return type. Change to : [code] public Complex(double x, double y) [/code] and it should work, i … | |
Re: [QUOTE=freesoft_2000]Hi everyone, I do instantiate the object and cast it to a document and set it to a JTextPane. But before i can do that i run out of memory although there is more than enough memory. There has to be way to do this Richard West[/QUOTE] Well, there may … | |
Re: From the top of my head, you should set the caret position after you update the text : jta.append("Some text!"); jta.setCaretPosition(jta.getText().length()); Have fun. | |
Re: [QUOTE=jengels]I'm supposed to write a loop to loop through the days, the write a switch statement for the verses. The program should print out just like the song goes. For example: On the 1st day of xmas my true love gave to me, a partidge in a pear tree On … | |
Re: You provided a constructor (Which btw should have method brackets behind it) but you do not create an object of the class, so there are no variables to work with. What you want is something like this : [code] public static void main(String args[]) { EasyReader console = new EasyReader(); … | |
Re: [QUOTE=tccummings] Premature end of script headers: projest.cgi [/QUOTE] :sad: This usually means that the cgi script does not print anything, so probably it is generating an error. I would guess it cannot find the lib. :!: If you use CGI::Carp, you can show the CGI script errors in the browser … | |
Re: Sounds easy, but... Two options : [B]A][/B] Use Java2 Version 1.5. The option seems to be included there. [B]B][/B] Use a WindowListener handler for the WindowDeactivated event and call the toFront() method there. However, this seems to only work for your own (java-generated) frames/windows but not for other apps windows; … |
The End.