Hi Everyone.
I have a problem getting the client's computer name. (Actually I don't know how, and can't find it either in google search)
This is a Web project.
Below is a example code:
...
Type: Posts; User: dicdic
Hi Everyone.
I have a problem getting the client's computer name. (Actually I don't know how, and can't find it either in google search)
This is a Web project.
Below is a example code:
...
your loop in your main method has initialization of countdown = 5 and a condition of countdown must be less than or equal 1 therefore that loop will never be executed.
Once you fix that bug...
you are trying to access element at index 10. But actually, the element with the highest index is 9.
The length of the array is 10 (base count is 1). The highest index is 9 (base count is 0).
...
Can you copy and paste the error message?
Your can use Random class in java. Random (Java Platform SE 7 )
I'm not familiar with eclipse IDE. But what I remember, if you want to add a jar file or library, you better use the build path of the eclipse. Using that, you can configure adding another jar or...
Yes there is no need to use 2 dimensional array for printing just
11 12 13 14 15
7 8 9 10
4 5 6
2 3
1
but what if the number of rows varies? Let say there is an input.
Let say the users in...
I think it would be better if you have a 2 dimensional array.
1st element of array is array with single element: 1
2nd element of array is array with 2 elements: 2, 3
3rd element of array is array...
Please read String (Java Platform SE 7 )
String object in java is capable of replacing the first occurrence of the specified word.
Thread same as http://www.javaprogrammingforums.com/whats-wrong-my-code/37871-help-needed.html#post148968
Thread same as http://www.javaprogrammingforums.com/whats-wrong-my-code/37871-help-needed.html#post148968
Welcome to the forum! Please read this Announcements - What's Wrong With My Code?
No members here will provide a code for you. If you want some help, just show some effort (a simple coding) then...
Hi! Welcome to forum! Please read Announcements - What's Wrong With My Code?
Don't quit if you love java :D
I think you just need enough time to learn, you also need some experience (maybe some...
Welcome! Please read Announcements - What's Wrong With My Code?
You can do internet search to find a way on how to read from and write into a file. Then try to code it for yourself. Once you have...
Scanner's reading method has a return type of String Scanner (Java Platform SE 7 )
and String is capable of converting a text into uppercase or lower case String (Java Platform SE 7 )
Actually the reason of it being zero is because your input is less than 80000. And you never overwrite it inside the loop.
Try to input a value of greater than 80000. it will change even though it...
your annualTotal has initial value of 0. And it will only overwrite when the input is greater than or equal to 80000 if (annualSales >= 80000) otherwise it will still be 0.
Try to input a value...
It would be easy for you to do that in JSF. Try Primefaces or Richfaces (I'm not sure if there is also one in Icefaces)
First, you better put your codes in code tags so it would be easy for us to read
-There is a semi colon at the end of your loop.
And please put braces in your loop even though it has only one...
just make a return type of array.
Example:
public int[] myIntArray() {
int[] myArr = new int[3]; // creating an array with length of 3
// assigning desired value for each element
...
in statement Student obj = new Student(Jim,Jones); java assumed that Jim and Jones are variables but you never declared them as a String variables.
So if you want to pass Jim and Jones as a String...
can you paste your whole code?
--- Update ---
Ok, I think I figured it out.
see this conditions in your code:
if (number > 99 && number < 1000)
if (x > 0 && x < 100)
it would be better it you post of your code.
Is it necessary to use a switch statement? Actually you can use another algorithm which is better than that and an easy way of converting number figures to words. Ex:
Assign an array of String...
I'm not good in sql server (Actually I have no experience on it).
But in the database that I used now in my work, we declare an output parameter. Output parameter is different from input parameter....