No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
If a heap is like a binary search tree shouldn't it search in O(log n)? | |
Hi all, I am trying to display some data from text file with an array. [CODE]$filename = "comments.txt"; $filepointer = fopen($filename,"r"); $myarray = file ($filename); for ($mycount = 0; $mycount < count($myarray); $mycount++ ) { $aline = $myarray[$mycount]; print $aline ." \n"; } fclose ($filepointer); If (if else statement-checks search … | |
I get an error "Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JButton cannot be cast to javax.swing.JPasswordField at def3.password$MyActionListener.actionPerformed(password.java:103)" in the following code, what am I doing wrong? [CODE]static class MyActionListener implements ActionListener { private String userInput = "username"; private static final String passText = "password" ; JFrame frame ; MyActionListener(JFrame f){ … | |
Need correction on my answers and description on my errors. Q1 Which of the following statement(s) is true about an abstract class? 1. An abstract class cannot have any constructors. 2. An abstract class contains only abstract methods 3. An abstract class always implements an interface [B][U]4. An abstract class … | |
Hello, I'm getting bash:is a directory message every time I want to extract a package. What is this? The file is in my downloads so I typed: /home/liveuser/Downloads tar -xfz pckg.tar.bz2 Im running Fedora 15 live CD. I've also tried su to root, and still the same. | |
Hello, Im trying to store 4 rows of delimited text from a text file( abc, abc, abc, abc abc, abc... ... ...) into an array and loop each line of the array and print it, but its not going well. [code] <? $file1 = "properties.txt"; $filedata = fopen($file1,"r"); $array1 = … ![]() | |
Hello all, I'm creating a login application using swing but ive run into problems already, I need help on making the if else statement work so the background is red. Your help is very much appreciated, [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; class MyWindowListener extends WindowAdapter { public void windowClosing(WindowEvent … |
The End.