2,040 Posted Topics

Member Avatar for neemo6

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.

Member Avatar for Taywin
0
218
Member Avatar for bearlow

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 …

Member Avatar for Fbody
0
207
Member Avatar for NexG

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)) …

Member Avatar for NexG
0
186
Member Avatar for XodoX

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...

Member Avatar for Taywin
0
165
Member Avatar for grabit

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 & …

Member Avatar for Taywin
0
154
Member Avatar for ankit.pandey3

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.

Member Avatar for Taywin
0
105
Member Avatar for Stefan_Lam88

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...

Member Avatar for Taywin
0
74
Member Avatar for BobTheLob

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 …

Member Avatar for JamesCherrill
0
132
Member Avatar for laitingfei
Member Avatar for Taywin
0
313
Member Avatar for tejasagawane

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.

Member Avatar for Taywin
0
71
Member Avatar for Virangya

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.

Member Avatar for Taywin
0
125
Member Avatar for Mangesh G
Member Avatar for Taywin
0
89
Member Avatar for amiref

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 …

Member Avatar for Taywin
0
115
Member Avatar for vishal1949

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 …

Member Avatar for Taywin
0
280
Member Avatar for PurpleHeaven

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 …

Member Avatar for Taywin
0
219
Member Avatar for agmolina90

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 …

Member Avatar for Taywin
0
602
Member Avatar for waaliban
Member Avatar for Emiliya

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 …

Member Avatar for I'mHere
0
184
Member Avatar for arsalanghouri

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 …

Member Avatar for arsalanghouri
0
126
Member Avatar for hwalsh

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]

Member Avatar for FALL3N
0
368
Member Avatar for LogicWeb

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.

Member Avatar for LogicWeb
0
434
Member Avatar for deviliq

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 …

Member Avatar for deviliq
-1
242
Member Avatar for deviliq

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. …

Member Avatar for deviliq
0
1K
Member Avatar for abhishek20
Member Avatar for abhishek20
0
307
Member Avatar for ukfreak

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???

Member Avatar for BitBlt
0
718
Member Avatar for Katana24
Member Avatar for Ssnowlin

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?

Member Avatar for Ssnowlin
0
390
Member Avatar for Skyelher

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. :)

Member Avatar for Skyelher
0
172
Member Avatar for sam.udo

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 …

Member Avatar for sam.udo
0
115
Member Avatar for MWE_QUE

How many questions do you have in the file you are reading? Are there 22 or more?

Member Avatar for Skyelher
0
347
Member Avatar for amatech

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 …

Member Avatar for amatech
0
141
Member Avatar for lukemaister

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.

Member Avatar for tinymark
0
116
Member Avatar for Excizted

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 …

Member Avatar for tinymark
0
115
Member Avatar for tcollins412

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...

Member Avatar for sivakumarl
0
135
Member Avatar for Wolfemann

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 …

Member Avatar for SundayForever
0
325
Member Avatar for jamezss

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 …

Member Avatar for jamezss
0
193
Member Avatar for desert564

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 …

Member Avatar for desert564
0
1K
Member Avatar for gedas

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?

Member Avatar for mKorbel
0
209
Member Avatar for maria_megha
Member Avatar for Taywin
0
103
Member Avatar for still_learning

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.

Member Avatar for z-Steve
0
119
Member Avatar for McLaren

Myabe you try param[name="Movie"]? Just want to see if IE thinks it is case-sensitive...

Member Avatar for tinymark
0
110
Member Avatar for harinath_2007

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.

Member Avatar for WolfShield
0
3K
Member Avatar for AMADH

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.

Member Avatar for AMADH
0
256
Member Avatar for desert564

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. …

Member Avatar for desert564
0
121
Member Avatar for desert564

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...

Member Avatar for desert564
0
78
Member Avatar for inni2626

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(...).

Member Avatar for Taywin
0
641
Member Avatar for GHLifestyle

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.

Member Avatar for Taywin
0
260
Member Avatar for tcollins412

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).

Member Avatar for kardklub
0
141
Member Avatar for Munnazz

What reorderlist? And why do you need ajax??? Please explain your problem...

Member Avatar for Munnazz
0
91
Member Avatar for davedrave

What the error/bug are you seeing? You mean it does nothing at all or it throws an exception on your console?

Member Avatar for Ezzaral
0
391

The End.