Posts
 
Reputation
Joined
Last Seen
Ranked #261
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
98% Quality Score
Upvotes Received
52
Posts with Upvotes
37
Upvoting Members
41
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
20 Commented Posts
~253.84K People Reached
About Me

Computer lovin' geek.

PC Specs
AMD Phenom II X6 1055T Scythe Ninja II Asus Crosshair IV Formula 4x2GB DDR3 X-25M G2 160GB SSD 2xHD5670…
Favorite Tags

201 Posted Topics

Member Avatar for samaru
Member Avatar for Sunshineserene

It won't shows in rows and numbers because you are using System.out.println all the time: [CODE=java]for (String str : values) { double str_double = Double.parseDouble(str); matrix[x][y]=str_double; System.out.print(matrix[x][y] + " "); }[/CODE] You need to print the columns without a new line, and each time you finish a line (exit the …

Member Avatar for Red_2
-2
19K
Member Avatar for vegaseat

Mrs. Golda Meir was the second elected female leader in modern times (She was the Prime Minister of Israel in 1969). Who was the first?

Member Avatar for vegaseat
11
9K
Member Avatar for Doctor Inferno
Member Avatar for SgtMe
Member Avatar for titan5

[iCODE]FileInputStream fstream[][/iCODE] is not initialized and therefore is null. Before you can write the code in lines 14 and beyond, you have to initialize the array itself: [CODE=java]fstream = new FileInputStream[array size][/CODE] If the array size is dynamic, you might want to consider a list instead.

Member Avatar for peter.lawrey
0
414
Member Avatar for WolfShield
Member Avatar for itzarun
0
1K
Member Avatar for apines

I see that there are many questions here regarding complexity analysis, specifically regarding the Big-O notation of algorithms. I will attempt to shed some light on the subject. I will start with an introduction, after which I will go over some common complexities and last we will solve a few …

Member Avatar for Rashakil Fol
13
1K
Member Avatar for apines

Hello, I am designing for work a testing environment which uses run-time randomly generated data to test our company's product. The problem is as follows: I have an inequality of the sort of x(1+y(1+z(1+p+q))) <= MAX, when x,y,z,p,q,MAX are integers, MAX is given as a method parameter and the method …

Member Avatar for amit28it
0
500
Member Avatar for hwalsh

They mean that you need to declare a new variable to put the username into it, and then when prompting the user for the username, just put it inside the variable, and then you will be able to use it later. [CODE=java] private void printWelcome() { System.out.println("Welcome to the 5th …

Member Avatar for FALL3N
0
366
Member Avatar for fahadyousaf

Let's analyze the code step by step. At the beginning you have 1 loop: [CODE=java] for (i=n; i>0;i=i-1) { y=y+1; } [/CODE] The loop is going from 1 to n, meaning O(n) complexity. Next you have a nested loop [CODE=java] for (i=1;i<=n;i=i*3) { for (j=1;j<=3n;++j) { for(k=0;k<n; k=k+5) { x=x+5; …

Member Avatar for \007
0
458
Member Avatar for shakssage

I recommend that you'll start [URL="http://en.wikipedia.org/wiki/Regular_grammar"]here[/URL], read about regular grammar to give you a direction.

Member Avatar for Saiiiira
0
237
Member Avatar for jake1496
Member Avatar for davidlouis88
-8
863
Member Avatar for robbio87

You see, the forum has such a good effect on you, that you just needed to post the code in order to see how to solve it :)

Member Avatar for ztini
0
218
Member Avatar for steel dr@gon
Member Avatar for junry
0
192
Member Avatar for Robinaofloxley

[QUOTE=rajarajan07;1375887]Edit the image with photoshop especially with patch tool. But the clearance is depends upon the logo color, if it a plain color then easily we can remove the text and add new one. if it is a well defined pattern, tough to do. everything is based on your logo.[/QUOTE] …

Member Avatar for annemendez
0
120
Member Avatar for wizuptech

You have companies that there entire business comes from inventory management systems, so you will have to be more specific about what are you trying to achieve and where do you encounter problems :)

Member Avatar for wizuptech
0
93
Member Avatar for furrykoya
Member Avatar for oneml
0
224
Member Avatar for aquabat

Idea: Read the data from the files into a variable and insert it into the tree. After you try that, see if you can eliminate this variable and insert the data directly into the tree :)

Member Avatar for aquabat
0
5K
Member Avatar for masamune

Are you allowed to use if statements? < > signs? If so, min and max should not be a problem - start there :) What exactly have you learned so far in Java, so I will know what you are allowed to use.

Member Avatar for jon.kiparsky
0
108
Member Avatar for jl.lakhnai
Member Avatar for apines
0
151
Member Avatar for spades0001

Show.Some.Effort. Show us what you have written so far - no one is going to code for you.

Member Avatar for laupkram
0
113
Member Avatar for AlvinLiu

Have you read [URL="http://www.daniweb.com/forums/thread324685.html"]this[/URL] by any chance? :)

Member Avatar for gnanasemantic
0
120
Member Avatar for DallasFan3

Please post the code you have written so far, and explain what is the problem exactly.

Member Avatar for DallasFan3
0
135
Member Avatar for oggiemc

You need to fix the build path the include the other project as well, it's not enough that they are in the same workspace. If you are using eclipse, you need to go to the build path (right click on the project, build path -> configure build path) and add …

Member Avatar for apines
0
314
Member Avatar for ceyesuma

I'm sure that you can use Google to search for existing code. You can write it by yourself, all the information you need is in the [URL="http://download.oracle.com/javase/6/docs/api/java/io/File.html"]File[/URL] class.

Member Avatar for ceyesuma
0
126
Member Avatar for Neo63

Does it work if you change the name of your method to something else besides indexOf ?

Member Avatar for apines
0
139
Member Avatar for lochnessmonster

Take a look [URL="http://kipirvine.com/asm/workbook/floating_tut.htm"]here[/URL]. Think about it - if you have floating points on your computer, then there is a binary representation of it :)

Member Avatar for geojia
0
112
Member Avatar for Codeslinger

Just posting your code is not enough - do you get an exception thrown? compiler errors? unexpected output? Help us to help you.

Member Avatar for apines
0
108
Member Avatar for socheata

In short, show some effort. Problems with code? we'll be happy to help - post the code [I]that you have wrote so far[/I], and tell us exactly what is the problem.

Member Avatar for apines
0
155
Member Avatar for RetNaRome
Member Avatar for kezkez
Member Avatar for kezkez
0
182
Member Avatar for CF019
Member Avatar for peter_budo
-1
151
Member Avatar for Xeros606

Forcing a class to implement abstract methods is not the same as forcing a variable - you can force the class to have the variable via inheritance, but as far as I know you can't force it to initialize it.

Member Avatar for apines
0
110
Member Avatar for eman 22

You have 4 threads in your program - the three that you have created and the main thread. The main thread (the main method) is finished after creating the three other threads. There is no guarantee regarding the order in which the threads will run and for how long, which …

Member Avatar for apines
0
161
Member Avatar for Mengha

Well, try for yourself, show us what you have done so far code-wise, and we will correct and guide you.

Member Avatar for kramerd
0
6K
Member Avatar for Liviu0CODER

On the other hand Java is a good language to start from as well, to learn algorithms, design patterns, and then go to pointers and such. Different methods I guess.

Member Avatar for Liviu0CODER
0
145
Member Avatar for Codeslinger

First, [TEX]12+14+16+18+20\neq 60[/TEX], it's 80 :). Second, every time you finish the inner loop you need to init sum to zero again, otherwise it will sum up the entire matrix and not just the rows.

Member Avatar for apines
0
96
Member Avatar for Monkey-huh?

What exactly is the problem? Are you getting any errors? and unexpected output? Provide some details...

Member Avatar for masijade
0
104
Member Avatar for Codeslinger

Please use the code-tags when posting code and define where exactly do you get stuck? what does not work?

Member Avatar for apines
0
205
Member Avatar for natha_peepli

If I am not mistaken you have to surround the code inside the method with a try/catch clause, to catch a possible IOException - Do you know how to handle exceptions?

Member Avatar for apines
0
196
Member Avatar for amras123

If I am not mistaken the output will be exactly what you will see on the screen once you will try to compile and run it yourself :)

Member Avatar for Dhruv Gairola
0
89
Member Avatar for Tankadin

If you want to know who's turn it is, simply ask the users at the beginning (before the loop and the game actually starts) who wants to go first. You can save a boolean variable [ICODE]firstPlayerTurn[/ICODE] - when it's true it's player 1's turn, if false it's player 2's turn. …

Member Avatar for Tankadin
0
733
Member Avatar for agons

I agree with coil's approach - just notice that you need to increment counter at the beginning or you'll end up in an infinite loop. Better make it a for loop since you need to count. [CODE=java] java.util.Random rnd = java.util.Random(); for(int i = 0; i < 20; ++i) { …

Member Avatar for polk230
0
2K
Member Avatar for anurag09

Perhaps a little late, but since it is not marked as solved I will give it a go. In order to swap two variables, denoted 'a' and 'b', using a third variable, denoted 'temp', you need to do the following: 1. place one of the numbers, say the one inside …

Member Avatar for Momerath
-2
127
Member Avatar for StaticX

[ICODE]package carpkg;[/ICODE] declares a package, perhaps you want [ICODE]import packageName[/ICODE]?

Member Avatar for Gerbiler
0
153
Member Avatar for saed sweity
Member Avatar for jamesze

Yep, this forum is for giving you all the guidance and assistance you need, but we will not solve your assignments for you.

Member Avatar for apines
0
181
Member Avatar for Goyle

[LIST=1] [*]Line 13 - you are initializing the totals[] array to 0, so far so good. [*]Line 16 - you want to fill all the cell in the totals[] array again, only now you choose from 1 to 5, missing the first element. [*]Line 27 - still want to go …

Member Avatar for apines
0
139
Member Avatar for hazeeel

The End.