jasimp 427 Senior Poster Featured Poster

So AD, I finally found your secret identity... in the attached screenshot ;)

jasimp 427 Senior Poster Featured Poster

No

jasimp 427 Senior Poster Featured Poster

It's quite old.

jasimp 427 Senior Poster Featured Poster

You never instantiate an object with the name br.

jasimp 427 Senior Poster Featured Poster

the only people i see regularly in the list are:
[attach]12639[/attach]

I see myself in there!!! ;)

jasimp 427 Senior Poster Featured Poster

Being familiar with the Java API, available online here, is imperative if you plan to program any further in Java. Another fantastic resource is http://www.javadocexamples.com. This has most of the Java API with example code. For instance, if you had looked through that site, you would have found the Random class, with example code, here. Good luck.

jasimp 427 Senior Poster Featured Poster

Actually, I was the first abuser of the voting system. I down voted every single post by The Mad Hatter. So...way to be wrong ;)

sknake commented: nice job :P +0
jasimp 427 Senior Poster Featured Poster

/Sigh
NoScript+AdblockPlus, USE THEM!!. I haven't seen these "new buttons" you guys are talking about, and it takes less than 2 seconds for all 30 posts on this page to load.

EDIT: Less than 1.5 seconds to post this btw.

jasimp 427 Senior Poster Featured Poster

This forum has no such policy, in fact you can reply to threads from over 5 years ago...if you really wanted too. Thank you for posting the solution to your problem, and for marking the thread as solved.

SoulMazer commented: Very helpful and informative +2
jasimp 427 Senior Poster Featured Poster

Heh, I did the same thing, the first time it was williamhemswort

Hehe, I remember when you were called that, I used to wonder if you had warts everywhere ;)

Nick Evan commented: Haha :) +0
jasimp 427 Senior Poster Featured Poster

Step 1: Learn Java.
Step 2: Google.

jasimp 427 Senior Poster Featured Poster

I just don't understand the point of it. People like AD complained because they couldn't leave neg rep without destroying someone's rep. So, instead of just having an option for no rep change when leaving a comment, an anonymous voting system was put in place, that doesn't allow for comments :-/

Secondly the numbers next to a thread are based off of the posts' votes, so if one post gets a bad vote, the whole thread gets a negative number next to it. It doesn't make sense.


BTW, another person against it :)

http://www.daniweb.com/forums/post1004252.html#post1004252

Nick Evan commented: Yessir, my thoughts exactly! +0
jasimp 427 Senior Poster Featured Poster

Sorry to be a dark cloud in all this but...

The new voting thing is terrible. As others have said it adds so much clutter to the design, its more information than anyone needs to know, its confusing for people who aren't regulars.

Why did you implement it in the first place? Was traffic lagging? Did members express interest in the idea?

It needs to go.

Also, I too noticed everyone has a gray block for rep now.

jasimp 427 Senior Poster Featured Poster

My Favorite Forums ??? Yes I like that too. Also like the new rep counters.

My favorite forums has been there for awhile now.

I think the rep counters need to be reduced in size, or redesigned, they don't fit well with the rest of the page.

jasimp 427 Senior Poster Featured Poster

While this thread is on the topic of reputation:

I like that posts that receive lots of positive (and perhaps negative although I haven't come across that) have more than one green dot next to the give rep link. Example below.

jasimp 427 Senior Poster Featured Poster

You need to add ItemListener to your combo-box. The sun tutorial is brilliant, look here :

http://http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

I hope that helps!

EDIT: lol James Cherrill, you just beat me to it! Same tutorial as well, great minds...

Your link doesn't work, you have an extra http://

Here is a working version of your link :)

majestic0110 commented: lol thanks for spotting that, silly me ! +5
jasimp 427 Senior Poster Featured Poster

could somebody help me creating a program through which i can control utorrent via bluetooth.. as in startin pausing or updating trackers and stuff.. could u please create 1 and explain me? plz

No. Put some effort into the project yourself. We can help you with your program if you get stuck. You will never learn if people do the work for you.

Salem commented: Bravo!!! +36
jasimp 427 Senior Poster Featured Poster
boolean display = A.B(inputInfo);

The return statement you used is legal. You can return false, true, or a boolean variable when using a boolean method. When you call A.B() that line of code becomes (basically anyways) the data type you are returning. That is why if you have a method that returns a String you can say

String testString = Class.returnMethod(someVariable)

As long as returnMethod() returns a String, the above code will work. The same concept applies to your situation.

jasimp 427 Senior Poster Featured Poster

I know this is a beginner question but it is something that I have never had to do before. Is this the correct way to import the other classes?

Why would you do this in your GeometricObject class? Just create a driver class, here's the one I made.

public class Tester {
public static void main(String[] args) {
	Triangle tri = new Triangle(56,56,56);
	System.out.println(tri.perimeter());
	Isosceles iso = new Isosceles(56,56);
	System.out.println(iso.perimeter());

}

}

Creating a driver class just tests code from other classes you have built. Your GeometricObject class is an abstract class and has no need to import the other classes because it never uses them. I'm pretty sure that if you keep your Java files in the same folder, say "/Java Code/Geometric" when you compile them the compiler will find all the classes it needs.

Grn Xtrm commented: Thanks for walking me through the process. +1
jasimp 427 Senior Poster Featured Poster

Amazing. Visiting the Geeks' Lounge is like sitting in a room full of children.

Maybe you should lobby to follow up on Rashakil's suggestion, Day Care, but instead of creating a new forum, just rename this one :)

Ancient Dragon commented: Nice suggestion :) +36
jasimp 427 Senior Poster Featured Poster
public Triangle(double s1, double s2, double s3)
	{
		this.side1=s1;
		this.side2=s2;
		this.side3=s3;
	}
	

	
	public Isosceles( double EQside, double otherside)
	{
		super(EQside, otherside); //calls triangle constructor 
	}


	public Equilateral(double side)
	{
		super(side); //calls isosceles constructor. 
	}/

Look at all your constructors. You have one triangle constructor, and it takes three parameters. Then in the Isosceles constructor you call super() with two parameters. You made the same mistake in the Equilateral constructor.

jasimp 427 Senior Poster Featured Poster

Iv uploaded the code so far on rapidshare if you could just download it and check it out that would be greatly appreciated, it dont seem to compile...

You need to post the section of code that is giving you trouble here, not the whole thing, only where you are getting an error (don't forget to tell us what error/exception you are getting.) A great skill to have is the ability to go through your code and figure out why "it don't seem to compile", if you ask for help every time the answer doesn't dance around naked in front of your face, you'll never develop that skill.

verruckt24 commented: I like the way you say this, straight to the face +3
jasimp 427 Senior Poster Featured Poster

what u mean ???

He means do it yourself. Once you start writing and come across a concept you don't understand, ask for a little help (in the correct forum.)

Killer_Typo commented: pretty much +7
jasimp 427 Senior Poster Featured Poster

Don't let the haters get you down - your post was very useful to me, and I'm sure to others as well.

I'm sure that in the six months it has been since they created this thread, they have gotten over any negative comments.

jasimp 427 Senior Poster Featured Poster

thx & lol :P yes it's funny, though I don't think I could live without music at all. I'm glad to see there's many others that share this feeling ;-)

Stevie Wonder said it best--"Music is a world within itself, it's a language we all understand."

~s.o.s~ commented: So true. +25
mrboolf commented: completely agree :-) great quote +2
jasimp 427 Senior Poster Featured Poster

And I want a billion dollars :-/

stephen84s commented: Excellent response +3
jasimp 427 Senior Poster Featured Poster

Easiest way to do what? You haven't told us what you need help on (besides the vague "I want to add some more features"), we have no clue where your at with implementing these "new features" and we don't even know if what you have done works! You state, "I have tried this with rmi," tried what, and did it work? I'm sorry my mind reading capabilities only extends to those with the brainpower capabilities to facilitate the mind reading reading, four year olds.

Alex Edwards commented: You're too try-hard =P +4
jasimp 427 Senior Poster Featured Poster

I'll supply the tinfoil for a hat making party ;)

Alex Edwards commented: XP +4
jasimp 427 Senior Poster Featured Poster

Just create a new color using your values. I added the line of code into your try statement.

try
         {
         red = Integer.parseInt(redText.getText());
         green = Integer.parseInt(greenText.getText());
         blue = Integer.parseInt(blueText.getText());
         if(red > 255 || red < 0 || green > 255 || green < 0 || blue > 255 || blue < 0)
        {
          JOptionPane.showMessageDialog(null, "Please enter a number between 0 and 255!");
          redText.setText("0");
          blueText.setText("0");
          greenText.setText("0");
        }
         else
         {
                 //creates a new color using the values inputed by the user
        	 Color colorTest = new Color(red,green,blue);
          color = "" + red + green + blue;
          JOptionPane.showMessageDialog(null, color);
          //sets the color to the one created from user inputted values
          centerPanel.setBackground(colorTest);
         
         }
         
        }
jasimp 427 Senior Poster Featured Poster

Try saving it to a .png instead of a .gif, that should (hopefully) work.

javaAddict commented: I would have never thought of that +3
jasimp 427 Senior Poster Featured Poster

I would recommend the fifth edition of Java in a Nutshell more than the fourth.

Alex Edwards commented: Whoo! Nice book, and it's not too expensive $_$ +4
jasimp 427 Senior Poster Featured Poster

Have you done any programs before this one? You need to declare main() as

public static void main(String[] args){ 
        
}

You never ended your Inventory class, it needs its corresponding bracket. You need to import java.util.* to use Scanner.

You cannot declare a class like

public class Data video disk

It needs to be one word, as in

class DataVideoDisk{

Change the next block of code to actually declare your variables correctly. You cannot declare an int and String on the same line. Don't forget the semi-colons and make sure to actually give name1 a type.

//every line needs work
        name1 String productName;
	int number1 String productNumber;
	int number2 String productStockAmount;
	int number3 String productPrice;
	int amount String stockValue;

The code above is duplicated right below. You can't use While as a class name, think of something else. You cannot use 'x' as multiplication, it has to be '*'. Start fixing those errors and try to learn the Java syntax because most of your errors were syntax errors.

jasimp 427 Senior Poster Featured Poster

Like a lot of people here I'm fairly new at using Java and I'm having difficulties using equals (==) statements. I need need to use the if statement to say "Do you have any data to enter?", if (input == "yes") then continue with the loop.

obviously this doesn't work and I've tried using String, char, linking either to an int value and then to the if but without any luck. I'm aware most will simply tell me they're not here to do my homework and I agree. I simply need someone to point me in the right direction (website, example, anything). Also arrays are off limits for this assignment; any help would be greatly appreciated. Thanks in advance.

*Edit* um yeah, thanks to anyone for taking the time to read this post but after 6 hours of searching the web I found out how to do it.

What you could have done is marked the thread as solved, that way everyone would know it was solved and would not read the whole thing. Or, if you really wanted to be helpful you could have put the edit at the top of your post, instead of at the bottom.

Alex Edwards commented: =P +4
jasimp 427 Senior Poster Featured Poster

hi all
i am new to dani web so if i make any mistake please forgive me ... I am just wodering that some could help me in my assignment.. i am not a programming geek and offcourse not in java. my teacher has gave me this assignment i dont have a clue what to do can any one please help me i m very thankful to u all...

QWrite and deploy a simple Java RMI-based Client/Server application. This is a simple Math Service, which we'll refer to as MathService. It will allow users to perform the following operations: Add, Subtraction, Multiply, Square, etc. In addition, MathService will have the following resource properties (RPs for short): Value (integer), and Last Operation performed (string)-ADDTION, SUBTRACTION, MULTIPLY, SQUARE, etc.

I would suggest reading this tutorial and maybe do a little more searching if you still don't understand it. If you don't understand it after that ask your teacher or someone else in the class for help. Teachers don't usually give homework without having covered or given reading on a subject. An RMI application is not a thing you do early on in a programming class so you should have some programming skills. Lastly, when you are working on your code and have a specific problem about it you can show it to us, give us an explanation of what is not working and we will try to help.

Alex Edwards commented: Great Link! =) +4
jasimp 427 Senior Poster Featured Poster

The error is pretty self explanatory. You never gave the variables a value.

float num11, num22;

That creates them but it does not initialize them with a value. If you give them a starting value, such as zero, your error is fixed; however your program does not work due to a logic error. Your method fun reads the values but never returns them. I think you should be able to figure it out from there.

jasimp 427 Senior Poster Featured Poster

If you post your questions in the correct forum, without using chat room language, sure :) People will try to answer your questions and help you.

jasimp 427 Senior Poster Featured Poster

Some people should learn how periods work.

Ezzaral commented: hehe! +11
jasimp 427 Senior Poster Featured Poster

>>>Why should we believe you? - John A

:) This is good rep on a rep comment.

Nick Evan commented: This is rep comment on comment on a rep comment :) +8
jasimp 427 Senior Poster Featured Poster

quite frankly any member who leaves the site after 20 seconds who cant be bothered to read the instructions doesn't really deserve to be here. :icon_wink:

Suppose a really great programmer or someone who knows XP and hardware inside and out, or someone like crunchie who is a genius when it comes to virus removal, joins Daniwed, and they are forced to read something they don't want to. Right there they might decide we don't deserve to have them. Then we would lose a potentially great member. I think it is better to have them join, have the option of reading the rules and if they break them often enough they will be banned; ridding us of their presence. Much better to lose an awful member, than a potentially great one.

peter_budo commented: Exactly my point +10
jasimp 427 Senior Poster Featured Poster

Show some effort by posting your code so we can see what you have done. Do what the question asks, learn how to write and read files by searching for tutorials. Google is your friend.

Alex Edwards commented: That about sums my thoughts up. +3
jasimp 427 Senior Poster Featured Poster

I am one of hundreds of crack users

Good, that is the first step, only eleven more to go ;)

Nick Evan commented: :D +8
jasimp 427 Senior Poster Featured Poster
Alex Edwards commented: Long live Google... long live Google... #_# +3
jasimp 427 Senior Poster Featured Poster

You need to instantiate choice1 before you add the string item. So change

choice1.add("10 oz");
choice1.add("16 oz");
Choice choice1 = new Choice();

to

Choice choice1 = new Choice();
choice1.add("10 oz");
choice1.add("16 oz");
peter_budo commented: Nice of you to help him +10
jasimp 427 Senior Poster Featured Poster

And use this.

Ezzaral commented: !! :) +10
jasimp 427 Senior Poster Featured Poster

If you had looked instead of being a lazy slug, you would have seen, at the top of this forum, a thread dedicated to starting Java Starting "Java" [Java tutorials / resources / faq]. It has websites, book suggestions, and what you need to start Java. I also recommend reading the rules, no "leet" speak.

Ezzaral commented: agreed +10
jasimp 427 Senior Poster Featured Poster

Try clicking on "Latest Reputation Received"

Ancient Dragon commented: Good suggestion :) +32
jasimp 427 Senior Poster Featured Poster

Welcome!

Your thread title will appear bold when it has unread posts in it. Posting in a poll is if you want to poll people. You ask a question and give them options. They can choose any of the options and there is a graph showing how many people picked each category. A good example would be found here. Only moderators can use animated avatars. And yes, this thread does belong here.

Prabakar commented: Thankyou very much +1
jasimp 427 Senior Poster Featured Poster

How many of us photographed (or tried to) the fireworks on Independence Day, or any other event? Share your successes, or failures. It was my first attempt but they came out all right in the end, I guess. If yours came out alright, what f-stop, exposure time, ISO settings did you use? Did you use an automatic setting? What kind of camera? Mine was a cheap Sony Cyber-shot DSC-S60. My attachments: First picture was f/5.6, 2 second exposure, ISO 200. Second picture was f/5.6, 3 second exposure, ISO 100.

John A commented: lookin' good! +15
jasimp 427 Senior Poster Featured Poster

What? A reminder for an event? Use your brain or write it down somewhere.

John A commented: I don't think he has a brain. +15
jasimp 427 Senior Poster Featured Poster

Welcomed to daniweb, do not worry about that automated PM you get for post editing, you spoted your mistake. Keep in mind edit button stay active only for 20 min, if I'm correct, after that you will not see it again ;)

Nope, 30 minutes ;)

Welcome grvs!