2,040 Posted Topics
Re: I believe you need to include the path of the 'bin' java in your Window environment. This is not, by default, added when you install Java Development KIT. You should search on the Internet for how to edit environment variables for Window 7. | |
Re: Not sure how you accept the input... Do you mean you currently have 5 variables which are arrays size of 3 and you want to instead use a 2D array? If so, you need to simply change the way you accept values and place each value into the new 2D … | |
Re: Depends on how you want to do with the value afterward. If you want to keep the value for later use, you could keep it as int and do as harinath_2007 suggested. If you just want to display the result only, you can convert the int to String (using Integer.toString(int_value)) … | |
Re: You could do as SnowFall if and only if you are allowed to use other libraries to build the function. Otherwise, you better build your own parser first. Also, does the incoming string could contain parenthesis as well? Watch out for that as well... | |
Re: I think you should not use "anchor" tag because it does not act the way you want. What you may want is to use is a simple style for the table cell and move the "onclick" event to the table cell itself. Also, you may consider passing the href & … | |
Re: Are you talking about window's task bar? I am not sure you could actually do it using JavaScript because it is out of scope. | |
Re: How do you display your footer? The problem may lie in CSS instead of JavaScript. I can't tell you because I don't know how you implement/build the page... | |
![]() | Re: If you want to not using sort which could usually be O(nlogn) and you can use as much memory as you want, you may consider to use Hashmap to count (using the element value as Key and value of the Key is the counter). This would reduce the time to … |
Re: I tried the code and I couldn't compile due to lacking of "Vocab" class... | |
Re: The problem is actually coming from the server. It is that the server cannot response with the type that your client browser is asking for. Check for type/format returned in your server code and compare it with what you expect it to be returned to your client. | |
Re: What you need is to have a keyboard listener to watch for a keyboard event. If the button pressed is F11 (keycode 16), then do something with your window. A simple script is [URL="http://www.javascriptkit.com/javatutors/javascriptkey2.shtml"]here[/URL]. Just take a look and see if you can modify to your need. | |
Re: Hmm... What happen if I just go directly to the default.asp page without accepting the cookies? | |
Re: Sorry for a very late reply. For the first error, it seems that you have gem cache problem with certain incompatible dependencies. Search Google using "ruby gem invalid gem format" for further possible answers. For the second error, you need a package to compile the incoming gem package because the … | |
Re: Aren't you supposed to extends a Thread class or at least incorporate the class to your implementing thread class? Then you create/use 2 thread objects using your new class in another class. You can call wait() and/or notify() in your implementing thread class, but it will depend on how you … | |
Re: What you need to do is to think about how you really build a pascal triangle manually before you can implement in a code. Your current code has flaws. 1) You do not need to create 2D array to accommodate a triangle. If you look at it, about half of … | |
Re: It looks fine; however, you need to read your instruction carefully. [QUOTE]Design a class named Person and its two subclasses named Student and Employee.[/QUOTE] and [QUOTE]Overridde the toString method in each class to display the class name and the person's name.[/QUOTE] To me, it means that you need to override … | |
Re: Old old thread... 2 years old!!! | |
Re: I am guessing you are putting 3 tables into either div or another table; as a result, those 3 tables inside each column would display in different height. There is a way to fix this, but it will require getComputeStyle() to obtain all three tables' height, and then apply it … | |
Re: Hmm... I started to see the very same thread again and again on this forum. I guess there may be people doing their homework. I wish my homework was this easy. :P Well, as Jeronim said, you should search for sudoku generator algorithm using Google. If you can't get your … | |
Re: What do you mean by return twice? This line, save the reader.nextLine() in a string before display, so you can reuse it again? [CODE] System.out.println("Hello, " + reader.nextLine() + ". Today you can practice Addition, Subtraction, or Multiplication."); [/CODE] | |
Re: Hmm... Did you check the elements' attributes after they are rendered? Chrome may have a certain different attributes in box rendering model that Cufon does not support. You may check only the elements that wrongly render. Just my two cents. | |
Re: Well, good for you. Still, you aren't using the forum the way it should. This is Java forum which is for those who have problems with how to code, not how to solve a problem from words to code. One thing about your equation, the solution is not a simple … | |
Re: Huh? You are misunderstanding about the equation for CPU scheduling... The average waiting time is the total waiting time of all processes divide by the total number of all processes. It is not your 'queue' size at all. Using queue time will be very dangerous and can be easily inaccurate. … | |
Re: Hmm... Check out [URL="http://pdfbox.apache.org/download.html"]pdfbox[/URL]? | |
Re: You are saying that there are 4 tables total? But what I see is that you are using only 2 tables - student & customerservice. You mean you need to get the count of Q1 from each of those 3 tables??? | |
Re: Please don't revive a dead thread which is 10 months old! | |
Re: Too much code... Anyway, what is the grammar of the language? And could you give a short sample of the language to be passing in? | |
Re: Do you have any special character in your goodWord list? I mean any character which may not be a displayable character? Just want to be sure about the TreeSet when you use raw type. :) | |
Re: Sounds complicated to me. :P If you really want to implement a real AI, you need to design and create an AI agent first. Then you teach it by passing certain amount of data, so it can learn. Now, what approach you want it to learn? Decision tree? That's not … | |
Re: How many questions do you have in the file you are reading? Are there 22 or more? | |
Re: It looks much better than your last version. Good to see that you took the 'Link' class out of your linked list class. Anyway I will help you to complete your 'Link' class. It is almost done and you are almost correct. Line 7, you need to change from "Link … | |
Re: Ajax and cookies... Could also have session on the server side and relog you in from the information sent from client side when you go to the page even after you close your browser but not log out. | |
Re: You could use any server side techonology to do that if you want to implement it from scratch by yourself. One problem that you need to solve is that how would you know that a visitor is still spending time on a page of your website. For example, a user … | |
Re: If innerHTML doesn't display, it may mean that your JavaScript has stopped working internally. What browser are you using? Is this the only script you have on the page? Only partial code of the page won't help... | |
Re: The error tells you that the call in line 11 is wrong. In the code, it attempts to pass in 4 arguments, but the actual function requires no argument. You need to check on that line. Also, it seems that the line is calling line 95 in the code. I … | |
Re: Hmm... Do you have to implement your code based on the given Course class? Are you allowed to modify the Course class or you have to use it as is? The reason is that I believe the Course class toString() design is weird. To me, it is silly to print … | |
Re: 1.First, you need to create a table to store your letters. You could use a 2 dimensional array of 5x5. 2.Second, you need to be able to search for the position of the letter inside the table given a character. The function should return a string of (row+1)+""+(col+1) which is … | |
Re: You could use [URL="http://en.wikipedia.org/wiki/Euclidean_distance"]Euclidean distance[/URL] to compute the speed. If you know the distance (from point A to point B) and the length of time it is moving, you should know how to compute the speed? | |
Re: And how would you distinguish that "Dps" is not a company name? Or it is? | |
Re: If there is no JavaScript enable, you have no way to do it. It is the browser set up... Not sure if Flash could still work, but that may be more than you want. | |
Re: Myabe you try param[name="Movie"]? Just want to see if IE thinks it is case-sensitive... | |
Re: Doesn't it come with your normal Java package from Sun??? Its [URL="http://java.sun.com/products/java-media/speech/"]API[/URL] doesn't say that you need to download it separately. | |
Re: Where do you set your cookie? You just read cookie -> set CSS -> display... You need to set cookie after you set the CSS too; otherwise, reading cookie will always return an empty string because no cookie is set. | |
Re: Please use the 'CODE' tag... There are things that are not properly formatted or not working here. 1)Are you coding it using Object Oriented style? If so, you need a constructor for your class; otherwise, move those class variables inside your main(). 2)You should have 'static' for your main() method. … | |
Re: I'm not going to answer your post anymore until you really learn how to post your code in "Code" tag... You have been posting for days and always copy-and-paste without using the forum code tag... | |
Re: It is right where the error is. You are using lower case 'l' (L) which is not correct. What you need is capital letter 'I' as Integer.parseInt(...). | |
Re: You are sure about a line break before each capital letter, right? Maybe you can try... [CODE] var str = xmlhttp.responseText; str = str.replace(/([A-Z])/g, "<br />$1") document.getElementById("my_div").innerHTML = str [/CODE] edit: syntax error... No need to have semicolon unless you want to compact the code. | |
Re: You just need JavaScript to validate the text field value. Yes, using onchange would be the best. Do not use onblur because it is very difficult to control and could give you an unexpected result (unwanted running of javascript). | |
Re: What reorderlist? And why do you need ajax??? Please explain your problem... | |
Re: What the error/bug are you seeing? You mean it does nothing at all or it throws an exception on your console? |
The End.