Search Results

Showing results 1 to 32 of 32
Search took 0.01 seconds.
Search: Posts Made By: Q8iEnG ; Forum: Java and child forums
Forum: Java 28 Days Ago
Replies: 3
Views: 325
Posted By Q8iEnG
Umm, thanks for the code and reply mate.

But, I really didn't got it! and Will this will work with array of strings?

For example if I have an array of strings, will this method sort the array...
Forum: Java 28 Days Ago
Replies: 3
Views: 325
Posted By Q8iEnG
Any idea?
Forum: Java 29 Days Ago
Replies: 3
Views: 325
Posted By Q8iEnG
Hi..

Is there any ready-made code for "Binary Search Tree" for Strings?

if not, how to use Binary Search Tree with Strings?

Thanks.
Forum: Java 30 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
And yeah I forgot, javaAddict nice bike you got :D congratz
Forum: Java 30 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
Just wow, thank you very much for this plenty of explanation of the codes and topics.

Congratulation JavaAddict for the 1500 posts :D
Thanks a lot BestJewSinceJC, for your assist and explanation...
Forum: Java 31 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
Sorry for that, but I didn't understood why I have to use Vector! I mean does the vector will recognize lines! if yes, how!

also, how should I input from the file to the Vector!

sorry, things...
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
I didn't understand the part you said about Vector, what is Vector!?

And you said Count++ for each word to be found, but if both words are in the same line! this won't work, right?

let me...
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
I ran it, and it works perfectly. and the Thanks goes to you and to BestJewSinceJC.

here is the output:



But, now I need to know how to see each word where is appeared in which line, how to...
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
I did this now I used "s.equalsIgnoreCase(argu)" because some of the words in the file having CAPITAL letters.

Data.java:

/**
* @author Q8iEnG
*
*/
import java.io.File;
import...
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
ahaaa omg i messed around lol

So, you mean I should first save the input in a variable and compare it
like this:

String s = input.next();
if( s.equals("a") )
blah blah
else if(...
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
This is my code now, WHY i'm getting an error!!

Here is the Data.java:

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Data {
Forum: Java 32 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
WOW, thank you so much I'm now coding easily :D

one more thing please, if I want to check a specific word where it occurred in which line of the file, how to do that?

I mean for example "a" I...
Forum: Java 33 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
Thanks mates for those useful links.

Sorry for that but I got confused, so which solution you think it'll be easier to implement and as you said javaAddict I want to find the WHOLE word if exist...
Forum: Java 33 Days Ago
Replies: 21
Views: 650
Posted By Q8iEnG
Hi mates..

I'm trying to find a way in how to inputing or outputting from a file in Java.

For my bad luck when I finished my Java course, our professor didn't talked about this thing.

I...
Forum: Java May 9th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
Sorry to be a bother, but really I didn't got anything LOL

I've just created a folder "logic" on my desktop and I saved on it all the ".java" files that I need to be in the package "logic"

and...
Forum: Java May 9th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
I've finished my project.

Can anyone gives instructions on how to make a "package" ?
Forum: Java May 9th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
I guess I've found a solution

I've changed the attributes in the super class to "protected" and I can now use them in my subclass.

Thanks a lot, if you have other suggestions please feel free...
Forum: Java May 9th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
Yeah, it seems ok to me. Thanks mate..
I can't test it mate, according to the code of ethics. Because my professor gave a hierarchy tree and we should implement it without testing it. Later, he'll...
Forum: Java May 9th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
Thanks, I would try it..


This is now my final code in NotGate
public class NotGate extends SingleInputGate
{
public NotGate( Wire input, Wire output )
{
super( input, output );
}
Forum: Java May 8th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
I'll try this thanks a lot,,

but please I guess you missed something, I said I want to output the opposite value of the "getInput"

if it is "true" I should output "false"
if it is "false" I...
Forum: Java May 8th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
first of all thanks for the reply :)

second, simply I want to see if "getInput" is "true" or "false"
after that I'll set the "setOutput" to the opposite value.

For example, if "getInput" ==...
Forum: Java May 7th, 2009
Replies: 17
Views: 691
Posted By Q8iEnG
Hi mates..

I have a small question..

I have now 3 different classes, sounds ok?

this is the 1st class, called "Wire"
public class Wire
{
private boolean Value;
Forum: Java Apr 9th, 2009
Replies: 2
Views: 297
Posted By Q8iEnG
I did it, haha Thanks mates and sorry for bothering :D

this is my final code:


import java.util.*;

public class Function
{
public void calculate()
Forum: Java Apr 9th, 2009
Replies: 2
Views: 297
Posted By Q8iEnG
I did it, can anyone tells me if it is OK or not?


import java.util.*;

public class Function
{
public void calculate()
{
Scanner scan = new Scanner( System.in );
Forum: Java Apr 9th, 2009
Replies: 2
Views: 297
Posted By Q8iEnG
Hi mates :)

how are you? I hope everything is all-right.. ;)

I have a small question, it is my HW to be honest

here is the question:
"Write a method that calculates the following equation:...
Forum: Java Mar 6th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
I guess I just want to see other's opinion :D

Ok.
Forum: Java Mar 6th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
Ok, thanks :D

and yeah, was my answer correct or not?
Forum: Java Mar 5th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
Umm, thanks for explaining so as you said "there's nothing known as essence complexity, but it is essence software, right?".

if that's the case then I just change some details in my "answer"
...
Forum: Java Mar 5th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
I know, I said Eclipse is essence (so it attacks accidents complexity)
and Extreme programming is accidents (so it attacks essence complexity).

That's really all I said and all I know XD
Forum: Java Mar 5th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
I did found only the sites of both of them :D

Well, let me tell you what I think.

Eclipse is an essence complexity as it is more functional than Extreme Programming.

Extreme programming is...
Forum: Java Mar 5th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
Actually, I like to do things and to solve my HW's by myself. BUT this one is really driving me crazy

I did a lot of searches in google but without any drop of hope!

So, if you can help it...
Forum: Java Mar 5th, 2009
Replies: 13
Views: 552
Posted By Q8iEnG
Hi guys..

I don't know if this is the right forum for my question, but..

I have a question from 13 questions I solved them all, and I just got stuck on this one

"4. Consider the following...
Showing results 1 to 32 of 32

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC