- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Taking Computer Information Technology
- Majoring in Web Development and Web Administration
- Interested in learning anything (programming, hardware, software, etc...)
- Interests
- Basketball, Programming, Website scripting (Client and server), ping pong, hanging out with friends,…
23 Posted Topics
Re: how bout this. a=a+b; b=a-b; a=((a-b)/(-1)); | |
Re: Hey Nikki, There's the problem is on your logic. [CODE]myCar.AccelerateSpeed(speed);[/CODE] You are accelerating the speed that you want EVERYTIME you call it. So, in your actual class the results go like this. Send 5 as speed. When it enters the Accelerate method of your Car class, [CODE]public void AccelerateSpeed (int … | |
Re: Start by creating a hello world application =] Then, extend that app to create an array filled with output. Loop through the array and display each elements in those indexes. Then, create multiple classes to enable you to create objects of those classes. | |
Hi, I'm wondering if anyone can help me develop the right sql query. I'm trying to select a "customerNumber" in table 1, but only if it doesn't exist in table2. I tried this [CODE]Select Table1.customerNumber From Table1, table2 Where table1.customerNumber NOT IN (select table2.customerNumber from table2) [/CODE] It isn't right … | |
Re: Hmm, I can't think of any other way to access the elements(the rating Numbers) without using the array indexes. I was thinking of having two extra variables. The first variable will be to count the quantity of ratings for that certain movie. The second variable will be a variable that … | |
Re: Hi niche1, According to your explanation I think that all you need is an event listener in your textarea tag. so, from what youre trying to do it should look something like this. [CODE]<textarea name="ta" rows="6" style="width:340px;" onkeypress="test()"> </textarea>[/CODE] onkeypress="[some javascript function for callback]" This reference might also be useful. … | |
[CODE]<html> <head> <script type="text/javascript"> function test (){ //refer tst to a new Objy object. var tst = new Objy(); alert(tst.display()); } function Objy(){ try{ this.prototype.display= function() { this.text="yoyo"; }; } catch (err){ alert (err); } } </script> </head> <body onload="Javascript: test()"> <div id="display" > </div> </body> </html>[/CODE] Hi, I'm basically … | |
![]() | Re: [QUOTE=;][/QUOTE] I definitely agree with pritaes's comment. Tables are meant to present data in rows/columns. In addition to that, divs are way easier to create AND change than tables. For example, here's the two codes the displays the same thing. "Title of Page Primary Navigation Content Secondary Navigation Copyright Notice … |
Re: [QUOTE=;][/QUOTE] Hi lapunluyang, For me, I would set my screen resolution no matter the content. I would just "organize" the content to make the page layout more pleasing to the eye. According to w3schools, as of January 2010 "most computers are using a screen resolution of 1024x768 pixels or higher" … | |
Re: [QUOTE=;][/QUOTE] Are you talking about using a nested for loop? for(int i=0;i<=100;i++){ for (int j=0; j<=10; j++){ } } The top for loop will do less loops but will do more loops inside it. | |
Re: Hey, Your program crashes anywhere you had "System.out.printf( " %s %s makes %d monthly \n" ,..." %d represents an integer data type. Your monthly is of type double. Also on your constructor in your Employee class. [code] "private String FirstName; //first name for this Employee private String LastName ; //last … | |
Re: Hey, I don't think there is such a function that closes all windows for java. By all windows, I mean, even applications running with the "windows" system itself. (Not the applications java creates through a JAVA IDE) I did some research and I think you may be able to do … | |
Re: The reason you are getting cannot dereference error is because you are trying to call a method (toUppercase()) on a primitive type. You can try doing it like this. [CODE]public static void main(String[] args) { char letter= ' '; //initialize this variable char C, F, Q; int cel,fah, fahrenheit, celsius; … | |
Re: Hey, you could do this. If you add a toString method in your Store class, you should be able to display the clickedStore in a string format. toString enables a class to "set" how the results will be returned. when you go System.out.println(yo) in the background, it automatically calls upon … | |
Re: Hi, I'd like to see your entire code to see what's going on but did you try to do a System.out.println to display if the right items are being stored in an array? System.out.println(Reg[0]); | |
Re: Try doing this. Put them into element blocks (div), and create a hierarchy of those divs. Example: have a div container (with defined position type). Inside it, have div elements such as header, body, navigation, etc... set those elements as position: relative. And define the coordinates of those divs. | |
Re: LinkedQueue is not within the Queue class heirarchy. When I tried posting your code on my JAVA IDE, it can't create an object of it. Do you have your own LinkedQueue class? Sorry i didnt see the package zip | |
Re: Hey Static, The way you declare a random is wrong. Here's how you do it. First, declare that a variable is type Random and create a new Random object(this enables you to use methods of the Random Class) [CODE] Random pickRand = new Random();[/CODE] Second, as far as I know, … | |
Re: Have you guys done arrays yet? Easiest way is this. Sorry I misread the question. Change the random generator to generate random numbers from 0-9. Generate random number 7 times. Each time you generate a number, store it in separate arrays (7 elements). One number for each array. Now, I'm … | |
Re: The reason it's giving you null is because when you created the Vehicle object, in your constructor in your vehicle class, you don't actually set the make and model. public Vehicle(String s1, String s2, int y) { make = s1; model = s2; if (y >= 1980 && y<= 2012) … | |
Re: Well, first of all, is this all your program? 2nd. From what I can see, you stated your variables inside your constructor. State your variables outside of your constructor.Then, initialize your variables inside the constructor. [CODE] protected abstract class BankAccount { String accountID; double balance; double interest; public BankAccount(String a, … | |
Ok, So the problem I am having is with the LineUps class in the getTime method. What I am trying to do in the getTime method is to get the overall time of the whole Queue list. The Queue's are really LinkLists of type Person. In Person, there are two … | |
Re: [QUOTE=;][/QUOTE] Hi canadian sars, I think that University courses specifically for HTML and CSS are not going to help much. As the previous posts stated, w3schools is a great tutorial to get you in the right direction. I don't know much about graphic design but I'm learning as well so … |
The End.