2,040 Posted Topics

Member Avatar for n2408

So what have you done in the Term class implementation so far? The posted code of the class right now is not completed. Also, your constructor for exponential value is equal to 0 doesn't sound right. When x^0 is always equal to 1 which is 1^1 (coefficient is 1 and …

Member Avatar for Taywin
0
116
Member Avatar for amullen98

Your checkWinner() method does not accept the current state of the board, but always create a new local board inside the method. As a result, you are NOT checking the board status. Also, you must only READ the data from the board variable and check for horizontal, vertical, and diagonal …

Member Avatar for Taywin
0
179
Member Avatar for scarletfire

Hmm... Have you read the [Wikipedia](http://en.wikipedia.org/wiki/One-time_pad) page? The way the encryption uses in this case is to use the ASCII value of the current letter. In other words, you first convert each letter to a hex ASCII value. Then you apply a set of key which is also in hex …

Member Avatar for scarletfire
0
787
Member Avatar for Aditya.gtbit

There exists a project similar to what you are looking for on [google code](http://code.google.com/p/winzipaes/). You could look at the source code how they did it even though you do not want to use their codes.

Member Avatar for Taywin
0
343
Member Avatar for shlokka

As *JorgeM* suggested, use onmouseover and onmouseout to call the same function.

Member Avatar for shlokka
0
140
Member Avatar for nova4005

>do I take all the classes I can at this school to save money and then transfer at the end of next year and just continue on towards the Bachelors degree Yes, it is the best way to save your money when you go through college. I did the same …

Member Avatar for L7Sqr
0
214
Member Avatar for jamesmadison43

The idea from *jalpesh_007* is fine, but the idea from *dmanw100* is better. The reason is that the idea of *dmanw100* requires less space and time to traversal through the list. However, it also requires more caution in insertion/removal. For now, you may follow *jalpesh_007* idea. For more advance (in …

Member Avatar for jalpesh_007
0
274
Member Avatar for ctclements

Please provide full information of why it is null! You are expecting other people to assume what happens when you run the code... Anyway, did you read the comment above the insert() method? You didn't follow the way it should. If the incoming argument is null, what would happen to …

Member Avatar for jalpesh_007
0
120
Member Avatar for mcmanuel20

No doing any homework for others. Explain to the OP where is wrong and why. Also, your code is extremely slow with bad algorithm even though it is taken directly from the OP. One more, encouraging beginners to ignore the meaning of variable name is ruining others. If these beginners …

Member Avatar for Taywin
0
171
Member Avatar for greg2186

Err... How about you do it yourself first? And then ask us whether or not it is correct. I am not going to do your homework for you but I could help you correct it.

Member Avatar for greg2186
0
270
Member Avatar for ncis_sg1

OK, you are done with #1. For number 2, you simply create a public static method inside your Calc class but not inside the main() method. You could call it displayMenu() or alike. For number 3, you could also create another public static method to accept user's input. This time, …

Member Avatar for ncis_sg1
0
4K
Member Avatar for danielgeorgy

I don't remember that it has `<%!` as the syntax. However, it could be interpreted as follows: <% ! if filmstrip_image_path.blank? %> or <%!if filmstrip_image_path.blank?%> So, what it means is ... <% not if filestrip_image_path.blank? %> Now, the blank? is a method call for the variable class. In this case, …

Member Avatar for Taywin
0
81
Member Avatar for riahc3

Use replaceAll() instead ([String API doc](http://docs.oracle.com/javase/6/docs/api/java/lang/String.html)).

Member Avatar for riahc3
0
143
Member Avatar for hwoarang69

It is not about the code, it is about the concept. OK, I'm going to try to explain it graphically... /* 1.if(playerX + playerW >= x && playerX <= x + width) { 2. if(playerY+playerH >= y && playerY <= y+height) { 3. if (playerX <= x) //player on left …

Member Avatar for Taywin
0
249
Member Avatar for cnad

What does fuzzy system do in your program? Give it a sample application. For example, you are going to create a player v. computer to play a Tic Tac Toe. Apply the fuzzy system from the paper to produce the computer AI, so that computer will not always win the …

Member Avatar for Taywin
0
469
Member Avatar for ibthevivin

If you have no idea about reading from file, try *DJSAN10* suggestion and use normal iteration (while loop) just to understand how it works. Then you change from the normal iteration to recursive (because your requirement asks you to deal with recursion only). If you already understand how to use …

Member Avatar for Taywin
0
2K
Member Avatar for cmps

You need a file writer of some sort... Scanner class is a read-in for input but not for outputing. There are many ways to write data to file. Here is an [example](http://www.roseindia.net/java/beginners/java-write-to-file.shtml) of how to write to file. I googled it...

Member Avatar for cmps
0
2K
Member Avatar for Nikhar

Your problem is not about TSP. You could read this [post](http://cstheory.stackexchange.com/questions/7606/need-an-efficient-algorithm-to-visit-all-nodes-of-a-graph-revisiting-edges-and) from other site about how to solve your problem.

Member Avatar for Momerath
0
172
Member Avatar for deadsolo

Anyway, it depends on how your file is structured. Is the data located in each new line? Or it is in a lengthy one line style? Oh, and what "script"???

Member Avatar for deadsolo
0
300
Member Avatar for MegaBigBigYo

When the requirement asks you to creating an array size of *n* with all *null* value, it means you simply create an array, and then iterate through the array to assign *null* value to each index slot. Object[] anObject = new Object[SIZE]; // create an array object size of SIZE …

Member Avatar for MegaBigBigYo
0
191
Member Avatar for jg1405

Your code is overwhelming and I doubt that anyone would want to read the 500+ lines of code without any clue for what they are looking for. When you ask for help, please be more specific. Do NOT say something similar to "not working," "have errors," "unexpected result," etc. This …

Member Avatar for Taywin
0
197
Member Avatar for pawan768
Member Avatar for pawan768
0
101
Member Avatar for forjustincase

There are many ways to do this. One way (and is safer for any number length) is to convert the integer to string using `Integer.toString(int_value);`. int a = 150; String aString = Integer.toString(a); // now it contains "150" Then iterate through each character of the string (using for-loop) and display …

Member Avatar for JamesCherrill
0
262
Member Avatar for coroll

Have you checked what value is assigned to *csi* before it calls the joinChatRoom()?

Member Avatar for JamesCherrill
0
289
Member Avatar for anwatts

Not sure whether your code is compiled? You didn't mention any error... Anyway in your ShapeFacotry class at line 42 in the constructor, you assigned a value *Shape* to your *shapeType*. Then you call buildShapes(). Inside the method, you create an array size of *nShapes* to the *shapes*. They all …

Member Avatar for JamesCherrill
0
214
Member Avatar for Violet_82

Just a quick response. How about adding a flag that will be turned on when a user clicks but not from auto scroll? Then turns the flag off once the scroll process is done.

Member Avatar for Violet_82
0
431
Member Avatar for sobias

I think your requirement is to use recursive call. It is not that difficult with recursion. What you need to do is to pop it every time you are in a recursive call, and keep popping until the stack1 is empty. Then push back to stack2 after the recursive call …

Member Avatar for Taywin
0
8K
Member Avatar for FUTURECompEng

First, you need to be clear when you ask a question. As *dmanw100* asked, what is the error message? Also, what is *node* class structure? I could assume that it is implemented as below but my assumption may lead me to a wrong cause. class node { node next; integer …

Member Avatar for FUTURECompEng
0
294
Member Avatar for FUTURECompEng

I am not good at proof either because it involves words. I got a D once in my exam to do the proving. I knew the result, but I used wrong words to explain a line or two. My professor marked the answer 0 from that. Anyway, you need to …

Member Avatar for Taywin
0
235
Member Avatar for lucy1997

When you do the submit, use onsubmit() from the form instead of onclick at the button. <form name="ExamEntry" method="post" action="success.htm" onsubmit="return validateForm()"> ... <input type="submit" name="Submit" value="Submit"> ... </form> You are attempting to use global variable (*level*) in different functions, but you never declare or initilize it first. As a …

Member Avatar for Taywin
0
184
Member Avatar for riahc3

Your question seems to be related to JavaScript more than Java. You may need to use Javascript with Ajax. You need a link or button on that page for user to start the export process. Once click, use JavaScript to grab the inside HTML tag content (*innerHTML* value) and send …

Member Avatar for Taywin
0
226
Member Avatar for ncis_sg1

OK, I will break the requirements down and try to explain to you. >a. Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay per hour. Net …

Member Avatar for ncis_sg1
0
208
Member Avatar for akvarel1

I don't know how you want to preview each file. It looks like you should go back to your design first. Select tag can be multiple, but how would you want it to be preview? Instead, you may create a page with all files listed, and have a check box …

Member Avatar for akvarel1
1
301
Member Avatar for alikhandro

The class tree works similar to a multi-way tree. The different is that you can initialise how many branches (degree) you want in the tree at the constructor level. //i.e. NaryTree(4); //This will create a node with degree of 4 and leaves are not initialised NaryTree(3, "NewKey"); //This will create …

Member Avatar for JamesCherrill
0
107
Member Avatar for mahes_
Member Avatar for alikhandro

No, the *front* is pointing to the first index that contains the data, and the *rear* is pointing to the index right after the last index where the last data in the queue is. The way this circular array works is to use 2 main variables to keep tracks of …

Member Avatar for Taywin
0
107
Member Avatar for hlamster

The *Back* button is a curse for developer. When the button is click, the browser does not save whatever state that JavaScript has changed but reverse back to its initial state (and won't call any script on the page). If you want to control the back button, you may need …

Member Avatar for AleMonteiro
0
449
Member Avatar for bulldogs2016

Do you understand how caesar cipher works? Is your requirement to work with case-insensitive??? You attemp to ignore case letter which actually makes this matter more complicated. You should keep the letter case as it is while working. You should know that 'A' to 'Z' and 'a' to 'z' are …

Member Avatar for bulldogs2016
0
181
Member Avatar for Szabi Zsoldos

I do not understand the question. :( Why are these scripts in separated file? Could you simply put them all in 1 file and then include it using *src*? The down side is that you would include other variable/data that will not be used in differen pages. Unless you pass …

Member Avatar for Taywin
0
169
Member Avatar for Arjun_Sarankulu

There is a regex to check without going through those long checking above. var str = "INC300051546,INC300051553,INC300051561,INC300051579" if (str.match(/^INC\d{9}(,INC\d{9})*/)) { alert("OK") } else { alert("NOT OK") } If you want a case-insensitive, add *i* behind the last /.

Member Avatar for Taywin
0
177
Member Avatar for rampage12345

Does your SimpleDate class provides day of week method? Is it implemented from [Calendar](http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html) class? Anyway, you could implement it from scratch as well and cooperate it with Calendar class which provides day of week. Then you should be able to find out using day of month and day of …

Member Avatar for rampage12345
0
395
Member Avatar for sk8ergirl

Is the FlightSchedule class used as a storage that can be read/written? Do you need have an instance of the class created inside your Assignment9Form? The reason I asked because the requirement does not say that the method needs to be static. If the data stored inside the class is …

Member Avatar for Taywin
0
222
Member Avatar for minimee120

I don't think this is *your* code. It is the code template from your assignment. Why? Because each method you are asking for help has comment which is the instruction of what to do! **Please show us what you really did inside the methods before asking.** If you don't understand …

Member Avatar for Taywin
0
4K
Member Avatar for Zaina jee

Well, you could use if-else if-else statements, but it will be a very long & messy code because of the permutation of the value in each variable.

Member Avatar for jllany.anthony
0
2K
Member Avatar for HibaPro

If you are looking for someone to give you codes, I would discourage you because I will not give you the code and would expect others to do the same. If you are looking for how to implement this, I could at least help you out. Look at the season …

Member Avatar for HibaPro
-1
99
Member Avatar for fonzi

Any scripting language should be able to do it. Also, how do you want it to be running? Periodically? Or run once and let it go until it is exhausted?

Member Avatar for Taywin
0
150
Member Avatar for Patiodude

You simply learn how to create and retrieve [cookies](http://www.w3schools.com/js/js_cookies.asp) for your site. Then put the call on your page where it could be a main page of each language. If the cookies matches the page language, do nothing; otherwise, redirect. If a user change the *remember me* check (onchange event), …

Member Avatar for Taywin
0
174
Member Avatar for Swiftle

Do you have super.paintComponent(g) as the first line in your override? Or have you tried repaint() method of the container?

Member Avatar for Swiftle
0
2K
Member Avatar for gassa94

Do you know what constructor is? Also, I think you need to break the requirement down into step by step. 1)declare an array of type char named seats with no initial values 2)instantiated the array in the constructor method 3)use a loop using the array's length property to assign the …

Member Avatar for Taywin
0
102
Member Avatar for System Networks

The question is too broad. To create an engine, you would have to plan what the engine you are creating is going to -- functionality, flexibility, formatting, etc. It is not a simply task... Have you done any of those brainstorming work for what you want it to have or …

Member Avatar for System Networks
0
279

The End.