Posts
 
Reputation
Joined
Last Seen
Ranked #903
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
86% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
5 Commented Posts
~6K People Reached
Favorite Tags
Member Avatar for mathewshiby

What do you mean exactly? Should I start throwing random programming topics at you? [I]Persistence, multithreading,...[/I] Maybe random OOP topics? [I]Inheritance, polymorphism,...[/I] And what do you actually mean with "I know java better upto swings"? Was it topics on Java Swing that you wanted then? Try to explain a little …

Member Avatar for Meir David
-1
312
Member Avatar for kiel19

> How does interpolation search work? Wikipedia explains fairly simply how it works: [URL="http://en.wikipedia.org/wiki/Interpolation_search"]link[/URL]. > Help me with how you end up with log(logN). Interpolation search is kind of an expansion on binary search because you pick a value, check it with the one you are searching for and based …

Member Avatar for domjdragon2
-2
132
Member Avatar for bimpok

I'm afraid that at least that should be your job... Not only part of the "we only give homework help to those who show effort" policy, but from there on we'll have a better idea of what you're willing to achieve and therefor we will be able to help you. …

Member Avatar for stultuske
0
130
Member Avatar for xanine

Ok, first things first... the way your code looks on this forum made my eyes hurt while trying to figure out what it does. Try to use less newline and shorter indents. As for the error, normally it comes with a line number so you should know at what line …

Member Avatar for xanine
0
115
Member Avatar for degamer106

I've copied your code and it works perfectly. How do you have your files organized? Like this? -WorkerDirectory + Worker.java + HourlyWorker.java + SalariedWorker.java + WorkerTester.java Some package definitions lacking maybe? Black Box

Member Avatar for masijade
0
180
Member Avatar for Labby77

Here you go, straight from the source: [URL="http://java.sun.com/docs/books/tutorial/"]link[/URL]. Great tutorials, well organized, you'll find anything in there you might need. Black Box PS: If you're new to programming, don't skip on getting to know all of the basic types and the bits and bytes behind them. Such knowlegde comes in …

Member Avatar for satya5321
0
88
Member Avatar for eleonora

You have two ways of doing that actually, do you want the user to give it at the startup of the program or at runtime? I'll assume that it'll be at runtime. You can use a Scanner witch reads from standard input to get the strings. Search in the API …

Member Avatar for eleonora
0
377
Member Avatar for jinalh

That's nice... The only thing is, we can't do it for you. If you come up with more specifications we can guide you, because at this point, "applet for create user - student & admin" isn't saying all that much. You have to show us that you are willing to …

Member Avatar for jwenting
0
92
Member Avatar for CloudSportRacer

It's best you start from the beginning when you want to start with GUI's. GUI building in Java is best done using Swing. The Java website provides great tutorials which will take you from the basics to where you want pretty quick. However, the do start out with the basics. …

Member Avatar for CloudSportRacer
0
115
Member Avatar for snitch321

It's a method, methods belong to objects of certain types. What is the type here? I want to help, but the name 'SlowMoveVertical' is a normal looking name that a lot of people already have used to create their own methods. Therefor, a google search isn't getting me anywhere unless …

Member Avatar for Ezzaral
0
124
Member Avatar for naps

If we would have had any suggestions at any point in time, we would have surely ran out of them by now, giving them to the 1385468413696434 final year students before you asking the same question... What I'm saying is... We can't decide that for you, once you have chosen …

Member Avatar for masijade
0
77
Member Avatar for slayer10

You realise you are handing it back to the same button right (i.e. btnA1)?

Member Avatar for Ezzaral
0
132
Member Avatar for newbieGirl

For each possible outcome, you want to print out what its percentage was. You have everything you need to calculate that. You can store the number of dice rolls in a variable (or hand to the method, although it would be better to store). Then for each result you are …

Member Avatar for newbieGirl
0
117
Member Avatar for newbieGirl

I think that's right Ezzaral. If it *is* a constructor, you don't have to include void as a return type, since it's normal behaviour for a constructor to return an object of its class. Now onto that main method. Every program needs a main method so Java knows where to …

Member Avatar for Black Box
0
92
Member Avatar for Acidburn

Just to give the solution to everyone (we worked it out over IRC). I think the getClass() method didn't really do what it was supposed to be doing. Instead using ClassName.class.getResource() did the job. Black Box

Member Avatar for Black Box
0
105
Member Avatar for midnight_falcon

It might be easier to optimize once we know what it is that you're trying to do. We can see you're checking every item of a (10 000 x 10 000) table and replacing its value. But what is it for, why are you doing that? If you could give …

Member Avatar for midnight_falcon
0
78
Member Avatar for claudiu_is

That's a good question. For this small amount of data you can work with cvs or xml files. Setting up the database and making it work in your code will take longer that doing so for the text files. However, parsing files is easy but it is slow, so if, …

Member Avatar for Ezzaral
0
152
Member Avatar for mauro21pl

Checkout this post: [URL="http://www.daniweb.com/forums/thread99132.html"]link[/URL]. Everything you'd want to know or you'll need for the next month of your learning quest is in there. :) Black Box

Member Avatar for jwenting
0
176
Member Avatar for Dio1080

Ok, I'm taking a look at it, but first you should know that when you post code, you should use the code tags like so: [code][ code ]leave out the spaces in the tags[ /code ][/code] and when you're using a specific language like you did (i.e. Java) you use …

Member Avatar for Ezzaral
0
128
Member Avatar for pickachu

You just cast it. In Java a char is actually just like an int, it only depends on how you use it. [code=java] // Declaration of char c, initialized with the character 'a'. char c = 'a'; // For int value of the character, cast to int: (int). int i …

Member Avatar for Black Box
0
107
Member Avatar for cs378

Maybe you can post your code, or the bit that reads the file so we can see what you're doing. Maybe its a buffer overflow or something somewhere, not that it's a huge file, but still. (checked: 7.2 KB) Black Box

Member Avatar for Ancient Dragon
0
120
Member Avatar for cga2

[QUOTE=cga2;483502]so that when there are same color balls i can eliminate them!!![/QUOTE] Did you really shout that loud while thinking of it to type the post? Anyway, if you have almost finished the code, post some of it here, so we can first of all see that you really have …

Member Avatar for Black Box
0
135
Member Avatar for mauro21pl

Actually, that isn't the solution. The way you say it makes it look like you have to do it right away. However, the problem was that he declared a variable and wanted to print it out at the end. His program had three different flows of which two did initialize …

Member Avatar for Black Box
0
135
Member Avatar for Danii

There's also something wrong with your idea of declaring an initializing. Variables always need to be declared before you can use them. This simply means: say what it is. Type name; When you do it like that, the pc knows you want to use a variable AND it knows what …

Member Avatar for ~s.o.s~
0
181
Member Avatar for fredjahed

For JavaScript questions you should post in the JavaScript forum, a subforum of Web Development. Java != JavaScript. Black Box

Member Avatar for ~s.o.s~
0
118
Member Avatar for learning2java

A moderator of this forum has made a really good sticky for this exact purpose: [URL="http://www.daniweb.com/forums/thread99132.html"]link[/URL]. Look into it and feel free to ask any specific questions. Black Box

Member Avatar for jwenting
0
94
Member Avatar for Danii

Ok, your method increment needs to increment that counter variable, which you aren't doing... There actually isn't anything wrong with the method getValue. Try to think about what should happen in the increment method and then post again what you have if it isn't working. [code=java] public void increment() { …

Member Avatar for Black Box
0
224
Member Avatar for Barefootsanders

Actually, in C 0 always stands for false, but any other number stands for true (not only 1). I'm not sure about the other way, it is possible that for this direction C automatically returns 1 (instead of any number different from 0). However, knowing C it might be that …

Member Avatar for Aia
0
108
Member Avatar for Dio1080
Member Avatar for rickster11

Hehe. A classic. correctName = true != correctName == true The first one assigns true to your variable, the second one checks whether its value is true or not. Black Box

Member Avatar for masijade
0
102