- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 15
- Posts with Upvotes
- 14
- Upvoting Members
- 8
- Downvotes Received
- 11
- Posts with Downvotes
- 7
- Downvoting Members
- 8
Software Engineer
- Interests
- Computers, basketball, Problem solving (any kind),
- PC Specs
- I have too many computer's
108 Posted Topics
Re: use a Recursive-Descent Parser Algorithm to evaluate your expression. dont try to calcuate it here. just keep appending the values to a string variable until equals is pressed, then pass the expression to your RD Parser to evalute the expression | |
Re: My Sister's computer just had this problem; and I looked at all the solutions given in this forum and they are just to long winded and complicated. Here is how u fix this problem; in your Network and sharing center select manage network connections from the left panel; then right … | |
Re: use a template file with place holders for what you want to replace and load the file into memory and do your replacements or you cound use the velocity framework for Java :) | |
Re: @Aviras you didn't have to write all this code to load objects via xml; [Apache commons digester](http://commons.apache.org/digester/) is a library for OXM (object xml mapping). we don't want to reinvent the wheel now do we. | |
Re: put your exception into google search should find something on there. Plus u need to give a stack trace for any reasonable diagnosis | |
Re: why do I see php code commented? use a [PreparedStatement](http://docs.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html) and you are welcome | |
Re: you might want to move this thread to mobile development | |
Re: use a TableModel or convert your list to an Object[][] or convert your list to a vector | |
Re: well you have only 8 possible numbers to generate so the probability of repetition is high; use the java.util.Random#nextInt(8) its no different from math.random() but it saves you the extra multiplication | |
Re: store the array as a blob or clob using hibernate and hibernate should take care of retrieving it for you from the database | |
| |
Re: where is this path /toolbarButtonGraphics/media/ relative to your Test.class path? | |
Re: you are getting exponent representation cause the results are really large /small so [CODE] 2.5E-7 = 2.5 * 10^-7 = 0.00000025 4.0E-4 = 4 * 10^-4 = 0.0004 [/CODE] | |
Re: I guess we can close this Thread. his assignment was due hours ago | |
Re: go to the eclipse menu options Window -> Preferences or you can right click on your project and select Build Path -> Add Libraries... from the context menue and select JRE System Library from the Add Library dialog box | |
Re: implement this interface java.awt.event.KeyListener and listen for KeyEvent.VK_ENTER | |
Re: I'm guessing this is an Ajax request. Try sending the contents over to the server with out using Ajax and see if that works | |
Re: A would only work for an array of ints. And what do you mean by resetting (u need to provide some context) | |
Re: Go read about LinkedLists and goodluck with your assignment | |
Re: your constants does not work the way u expect it to work. when u create an instance of your constants object it does not read any input. what you need to do is to ask the user for input from the main method after which u can call scanner.next(whatever) | |
Re: check if java is installed in the browser or if it is disabled. which browser are you running on? | |
Re: This is how you create the index: you don't need to read in the files via a reader; you have to create an index. Create a Map for you index and a File object like so [CODE='java'] Map<String, String> fileIndex = new HashMap<String, String>(); File movies = new File("D:/MOVIES"); // … | |
Re: First you need to create a reference to the JTextField object that will be available to the JComboBox's itemListener object. Add an ItemListener to the JComboBox to handle itemStateChanged events. in your handler get the selected item from the ItemEvent and pass it to the setText method of the JTextField … | |
Re: create a JAVA_HOME evn variable and add its bin directory to the PATH variable; use the JDK instead of the JRE | |
Re: add this to the end of your path variable ;C:\Program Files\Java\jdk1.7.0_03\bin and save it and then exit your cmd and open a new one to capture the path variable changes | |
Re: how are you executing this code (command line or IDE) and how are you resolving your classpath? | |
![]() | Re: you have not yet created an instance of your SearchEngine class. your main method is not doing anything; do this in your main method [CODE='java'] public static void main(String[] args){ new SearchEngine().start(); } [/CODE] ![]() |
Re: you are better off using JSP/Servlets if you want develop a webapp. | |
Re: Graphics2D object should have transformation properties checkout the api | |
Re: How about using an ArrayList and have the power of Java Collection API at your finger tips | |
Re: @rinoel please don't do that u just made urself look bad. forget about your program go back to school and learn some statistics | |
Re: You haven't actually told us if there is anything wrong with your program. I've you tested it and is it working as expected? | |
Re: for starters you need to change from this to using MVC, separate the view from the model. use servlets for your logic and jsp for display (logic in JSP Bad thing). Then we can go from there. check out the [URL="http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.html"]FrontController[/URL] or grab a framework like SpringMVC, Struts, Wicket etc. | |
Re: remove this line from counter=counter+1; from the loop and do this instead inside your loop [CODE='java'] sum+=sale[counter++]; [/CODE] | |
Re: You are reading from a file not writing to a file so PrintWriter is out of the question. you are already using java.util.Scanner to read user input you can also use it to scan through the file. @ztini this dude can barely understand his own code how in the world … | |
Re: [URL="http://docs.oracle.com/javase/6/docs/api/java/util/Random.html"]java.util.Random[/URL] | |
Re: u can't put 2 components in the centre using border layout. what u want to do is to create a panel with a flow or grid layout and put your 2 components in that then put the panel in the centre of your frame | |
Re: what exactly do u want help with? did you run your code and is it working? You have redundant if statements; you should combine the 2 true statements and 2 false statements | |
Re: And where does java come into ur requirement? are you copying from windows to unix or unix to unix; there are ways to do this without java but if you want to use java then look at this api [URL="http://www.jcraft.com/jsch/"]jSch[/URL] | |
Re: 1.) what is the aim of your code. 2.) your validation of n comes after you have used it (think about it) do u let a thief into your house and let him take stuff before u check him out. 3.)you calcuated e and did nothing with it(did u mean … | |
Re: Back to School (Geometry): What you need to do is the find the distance between the `Point2D.Double p` and the center of the circle; if this distance is less than the radius then its inside the circle else its outside it. solution: Let c represent the center of the circle … | |
Re: it might have been a good idea to run your code to confirm your exceptions before posting this (its easier to learn from your own mistakes). you will only run into problems if you try to remove the State objects from the set returned by stateMap.values() mid iteration; modifying the … | |
Re: You need to do some reading. This link will be helpfull [URL="http://www.amazon.co.uk/Sams-Teach-Yourself-One-Hour/dp/0672329417"]C++ an hour a day[/URL] You should find the answer to alot of your questions there | |
![]() | |
Re: use the html input tag: <input type="file" /> one input tag for each file u want to upload | |
Re: use JSP expression language and JSTL tag library | |
| |
| |
Re: use JavaScript; create an array of the image links and then write a javascript method that uses either setTimeout or setInterval replace the images when the interval time is reached | |
Re: all you have to do is upload the code to your server via the jsp and then compile it on the server. Be aware of the security risk involved in what you are trying to do (if you indent to run the compiled code on the server) |
The End.