Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
59% Quality Score
Upvotes Received
15
Posts with Upvotes
14
Upvoting Members
8
Downvotes Received
11
Posts with Downvotes
7
Downvoting Members
8
1 Commented Post
4 Endorsements
Ranked #397
Ranked #585
~41.4K People Reached
About Me

Software Engineer

Interests
Computers, basketball, Problem solving (any kind),
PC Specs
I have too many computer's
Favorite Tags

108 Posted Topics

Member Avatar for darylglenng

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

Member Avatar for M4trixSh4d0w
0
332
Member Avatar for JUGS446

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 …

Member Avatar for barunsen
0
6K
Member Avatar for 47pirates

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

Member Avatar for 47pirates
0
145
Member Avatar for Aviras

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

Member Avatar for Troy III
1
396
Member Avatar for pooja.shinde

put your exception into google search should find something on there. Plus u need to give a stack trace for any reasonable diagnosis

Member Avatar for ejosiah
0
64
Member Avatar for am30568

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

Member Avatar for ejosiah
0
712
Member Avatar for trektrak
Member Avatar for blivori
Member Avatar for jcAmats

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

Member Avatar for jcAmats
0
593
Member Avatar for Pravinrasal

store the array as a blob or clob using hibernate and hibernate should take care of retrieving it for you from the database

Member Avatar for Pravinrasal
0
164
Member Avatar for jackbauer24
Member Avatar for learntosucceed

where is this path /toolbarButtonGraphics/media/ relative to your Test.class path?

Member Avatar for ejosiah
0
347
Member Avatar for jayadan

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]

Member Avatar for jayadan
0
177
Member Avatar for fatooma92
Member Avatar for jbennet
-1
169
Member Avatar for ilovejava

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

Member Avatar for designuts
0
2K
Member Avatar for htp367
Member Avatar for softDeveloper

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

Member Avatar for peter_budo
0
105
Member Avatar for riahc3

A would only work for an array of ints. And what do you mean by resetting (u need to provide some context)

Member Avatar for riahc3
0
176
Member Avatar for asif49
Member Avatar for LdaXy

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)

Member Avatar for ejosiah
0
289
Member Avatar for lena1990

check if java is installed in the browser or if it is disabled. which browser are you running on?

Member Avatar for lena1990
0
89
Member Avatar for javitis

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"); // …

Member Avatar for stultuske
1
303
Member Avatar for whateverme

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 …

Member Avatar for whateverme
1
142
Member Avatar for elsiekins

create a JAVA_HOME evn variable and add its bin directory to the PATH variable; use the JDK instead of the JRE

Member Avatar for ejosiah
0
150
Member Avatar for mpound

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

Member Avatar for mpound
0
131
Member Avatar for nidheeshkumar.r

how are you executing this code (command line or IDE) and how are you resolving your classpath?

Member Avatar for nidheeshkumar.r
0
432
Member Avatar for loserspearl

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]

Member Avatar for loserspearl
0
179
Member Avatar for choat
Member Avatar for choat
0
110
Member Avatar for MsBear92
Member Avatar for crazymidget01

How about using an ArrayList and have the power of Java Collection API at your finger tips

Member Avatar for ejosiah
0
3K
Member Avatar for mj_sexy14344

@rinoel please don't do that u just made urself look bad. forget about your program go back to school and learn some statistics

Member Avatar for stultuske
-2
346
Member Avatar for jimmyabhinav28

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?

Member Avatar for ejosiah
0
145
Member Avatar for archie.herbias

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.

Member Avatar for ejosiah
0
2K
Member Avatar for MichaelCJ10

remove this line from counter=counter+1; from the loop and do this instead inside your loop [CODE='java'] sum+=sale[counter++]; [/CODE]

Member Avatar for MichaelCJ10
0
121
Member Avatar for gatechie

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 …

Member Avatar for dantinkakkar
0
1K
Member Avatar for rizzi143

[URL="http://docs.oracle.com/javase/6/docs/api/java/util/Random.html"]java.util.Random[/URL]

Member Avatar for ejosiah
0
261
Member Avatar for Hitman Mania

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

Member Avatar for ejosiah
0
157
Member Avatar for carolinatech

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

Member Avatar for zeroliken
0
286
Member Avatar for jinneebhat

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]

Member Avatar for ejosiah
0
81
Member Avatar for herious89
Re: Help

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 …

Member Avatar for ejosiah
-2
97
Member Avatar for xcrypted1

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 …

Member Avatar for xcrypted1
0
2K
Member Avatar for freedomflyer

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 …

Member Avatar for freedomflyer
0
1K
Member Avatar for wildplace

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

Member Avatar for ejosiah
0
125
Member Avatar for smslive2
Member Avatar for Taywin
0
412
Member Avatar for hidash_in

use the html input tag: <input type="file" /> one input tag for each file u want to upload

Member Avatar for masijade
-1
640
Member Avatar for celyst
Member Avatar for vsaransweety
Member Avatar for -_-
Member Avatar for mjwoodford

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

Member Avatar for ejosiah
0
103
Member Avatar for muusa

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)

Member Avatar for muusa
0
130

The End.