peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is know bug http://netbeans.org/projects/ide/lists/issues/archive/2011-02/message/411. Why aren't you using stable version?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is there really a need for iterator? You can loop through list as

List<PersonalData> personalDataList = new ArrayList<PersonalData>();
//list populated by "add" or directly from DB results
for(PersonalData personalData : personalDataList){
  personalData.getName();
  personalData.getAddress();
}

As why no data visible on page? Difficult to say since you posted only few lines...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any specific reason you want to use JUnit 3 instead of JUnit 4?

As for JUnit 4 test can be simple as

public class SphereTest{
  @Test
  public void testSphereVolume(){
    assertEquals(33.5 , new Sphere().sphereVolume(5));
  }

  @Test
  public void testSphereSurface(){
    assertEquals(53.5 , new Sphere().sphereSurface(5));
  }
}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread locked as it is duplication of another thread. If you wish to follow discussion please check here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would appreciate if you stop create new threads and stick with this as all your problems & questions are the same issue of how to record video.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have heard that the HTC Desire is selling like hotcakes in Singapore, but i don't know why.

Wouldn't be that because Desire is cheaper then iPhone, desire is larger then iPhone?

I prefer xpeira sony ericson phones as their touch screen is better and the sony ericson vivaz has a 8 megapixels camera. Desire s has allow face to face conversations so that beats sony ericson, but i would still remain a loyal supporter to sony ericson.

Bringing SE Vivaz in conversation bad choice. For once it is neither Android or iPhone based product, secondly there is plenty of phones with 8 megapixels cameras. Besides it is not about how many pixels you can get on it, it is about what quality of picture you can produce with it, specially in poor or extreme light conditions.

As for the record I'm not against SE, before having two THC phones I had many of SE phones, and if I liked some new coming device I was happy to wait even few months till it hits market. My girlfriend has SE Xperia 10, which is lovely phone. However considering how fast is moving Android world (market and development) SE become a slow moving giant that takes ages to put new device on market and then it does release it with few versions bellow the latest Android version. Example SE Xperia 10 came with 1.6 when 2.0 was up for few months and 2.1 was just hot stuff. It took them …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@jingda lets put it right the facts.
Android Inc. founded in 2003; Google acquired Android Inc. in August, 2005; November 5, 2007 the Open Handset Alliance; The first commercially available phone to run the Android operating system was the HTC Dream ( or often known as T-Mobile G1), released on 22 October 2008

The first iPhone was unveiled on January 9, 2007, and released on June 29, 2007, how long it was in development we wouldn't know, but considering that Andrew Rubin been working previously for Apple and already in 1989 they attempted and failed to develop device like iPhone or Android then we can only conclude that they started in same time

If I may I would vote against HTC Wildfire as it is one of their smallest Android devices (minimized version of Desire). HTC Desire HD is good choice, but now I would be already tempted by HTC Desire S or HTC Incredible S ;)

PS: Avatars are disabled here together with signatures, sort of signature link spammers prevention

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You are looking at it from wrong point, plus not giving full problem description. From what I seen in your code I assume that you are trying to do examination system.

So what we know is that in database we have set or CORRECT_ANSWERS and we need to check them against a STUDENT_ANSWERS. What they have in common is the structure so they should be easy to compare. So what you need to do is
1. get STUDENT_ANSWERS from submit form
2. get CORRECT_ANSWER from database
3. write method that will compare STUDENT_ANSWER_1 with CORRECT_ANSWER_1 and increment score
4. once comparison done return score value

In your scenario the fastest solution would be use of Collection like array or list and simple looping through one collection, getting element from other collection in same index position and compare them

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Correct me if I'm wrong but these pop-ups been done through Java Script, therefore you should ask this question in Java Script forum. If you want to move this post to other section let me know

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

and debis ur replies never helped me, so plzzz avoid replying my threads...
thank u very much...

1. Please start using proper words, "ur, plzz, u" are not you should know better then after the number of posts you made
2. If the replies are not helpful to you then ignore them, no need for this sort of replies that can be view as offending

@OTHERS
If a member reply is offensive please report it, however if your suggestions/help is not appreciated then what is point of reporting that person as expecting "spoon feeding"?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No need if we talking about 4 people. It would be different if we spoke of thousands or millions.
However you need to understand that at the moment you are just on local/private network. This wouldn't work if your friends try to access it remotely.

arshi9464 commented: This person has a lot of knowledge about programming. Hats off +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, that is integer you need to provide from command line when you starting application.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Next time make sure you post in correct section, in we have sub section called JSP(Java Server Pages) that holds info on Java web development
2. To call tomcat from other computer then it is installed you need to use the IP of the computer installed, port number if different then 80 followed by application name.
Example: given that Tomcat installed on 192.16.1.44 with default port number you need to call 192.16.1.44:8080/amar/arsh.html . This will be accessible if the given pc hasn't got some port restriction or if pc or Tomcat is off

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is expecting integer that represents port number( check line 18 in the code), and yes you can run it locally

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I was replying to the post immediately before my last one, so in that sense I think it was on topic, if not specific to the original posting of this thread.

Still of topic as question was asked why it is running slower on Windows. Down voting my re-primal that you are going off topic is just lame...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@rubberman better read properly before you reply.

@1ML no idea why emulator is running so slow for you I have no problem on my pc (dual boot win 7 / ubuntu 10.10). However I do use IntelliJ instead of Eclipse. PS: You sure that partition was deleted? Windows normally moves boot-loader to it self, but it wouldn't wipe existing partition unless you told it to do. To recover boot-loader check this document

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

no matter what Andriod is dominating the mobile market and they must continue to

One sided opinion, probably based on limited knowledge of market/technologies...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have the iphone4 and am thinking of buying the HTC Desire A9191.
Good move or bad?

Not many folks would understand that you talking about HTC Desire HD ;)
Never had iPhone, my last phone was HTC Hero and before that string of Sony Ericsson phones. Personally I do like this phone, much better performance then Hero, large improvement to user interface and the way you use it and interact with device, it may look bulky to some, but for me it is perfect fit.
My only downside to it at the moment is issue with SMS notifications. With upgrade to 2.2.1 HTC messed up something so often I receive SMS but there is no notification sound or icon. I have to go into messages to see if there was something. Hopefully this get sorted with update to 2.3 that someone leaked should be sometimes in summer

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Quick google search for "jme get imei" and you would have found this article with references for nokia, sony ericsson, motorola, samsung and siemens

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So why not share your solution? You may help somebody in future with same/similar problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

People make up bureaucratic nonsense like this because the real problems in programming are too deep for them.

Essay are also part of study. I did hate them, specially these from one teacher that had obsession with 3k words long ones. At the end I sort get use to it, I guess it was down to English being my second language. That was off topic.

I'm at the moment reading Effective Java by Joshua Bloch

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK that is fine, now go to File >> Import >> Import Existing project and then navigate to the location of the project. Once this done you should see it in Eclipse

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you place it into your workplace on laptop for Eclipse to easily recognise?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes original problem description was badly written.

I hope you have Android SDK setup on your laptop and relevant profiles available for Eclipse.
You have to make sure you copy whole project folder from the pc to laptop, not just files and folders you created as each IDE add its own file that are created behind scene. If not sure make a zip file and post it here so somebody can check it for you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You sure you want to share your school assignment here?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, because you failed to mention for the computer from which you want to connect what sort of user rights you have, or if you able install any applications on this computer...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

A) Setup proper network with access privileges
B) Use share directory provided by 3rd party something like Dropbox

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@imso please do not post in the future

@abelLazm as I mentioned in previous thread reply your link is pointless as it is compiled application. Secondly that second link on file extension change is just wast of time as it doesn't help at all...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

All the links you provided are useless since they do not explain how the problem was tackled and only link compiled application on not source code on which one may have looked to see how it was done.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Best solution in this case would be to get Head First Servlet & JSP and read it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Do not double post (double in Java section deleted)
2. Post moved from C# to IT Professionals' Lounge as not to spark hate replies from either group.
3. Based on that "limited" to none requirements nobody can give advice
4. Should do research first to see what is available, what technologies used and what pros & cons of each application

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@gazzy1
1. Start using code tags as [code] YOUR CODE HERE [/code]
2. Make sure you post in proper section, not posting PHP stuff in JSP(Java Server Section) or JS(Java Script) in PHP section

or all accumulated infractions will get your account banned...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

retrieve data from database from jsp with buttons like first,next,prev,last

If you visited above link you wouldn't double posted question and looked so stupidly ignorant for everyone to see...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Please start using code tags as [code] YOUR CODE HERE [/code]
2. Make sure you do not double post, if you have slow internet connection wait for reply that your post was published and do not submit it for second time

Or you will get plenty of infractions and will be banned.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You may want to keep results of each flip in a collection(array, vector, list). Then ad the end you call a method to get print of how many heads and tails and forward this collection as argument for method. To get numbers, create another method that will get collection as parameter and also second parameter (heads || tails) and base on that prints position numbers where second parameter equals with entry in collection.

Try to code it, if you get in difficulties then ask

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You almost there

for (int counter=0; counter<20; counter++)	
		{

			int x = 1+ randomNumber.nextInt(10);
			if(even.evenNumber(x))
			  System.out.println("Number is even");
			else
			  System.out.println("Number is odd");
			
		}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. getQuestion is part of your constructor GameScreen, it should be outside
2. getQuestion is missing round barckets

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ZeroCul you are just 2 years behind with your reply. Congratz on reopening old dusted record...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

James was faster...

BTW why you messing with drap and drop if you do not know basics? Your teacher will easily discover you used IDE to create application and you may loose marks because of it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would you mind to share it? You may possibly help somebody in the future with same/similar issue....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why not use Flex?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not see there "simple question". What I do see there is copy & paste of your school assignment. For more details how to solve it read this

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I want to work the textfields of my registration form the the list of options

Your reply doesn't make any sense. If you cannot take time reply properly why should any one care to answer your question?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I see no reason why you got wind-up. I answered to my best knowledge and ask you not to double post. If you are not capable take friendly meant criticism well then that is bad.
Choice of staying or leaving is your. Nevertheless if you stay you are expected to adhere forum rules where keep it organize clear state "Do not post the same question multiple times"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is a nice article already suggested few times, if you actually searched forum before posting, called Implementing Search Result Pagination in a Web Application

Happy reading...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Off topic, you may consider to look up some what up-to-date version of Tomcat. Version 4 was dropped long time ago. My friend "pidster" would go berserk if he seen you using it. Latest version is 7, supported version are 5 & 6, so if you not for the hotest stuff you should at least use version 6

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have no idea why your Eclipse is so slow that is not normal. If you want you can try IntelliJ Idea 10 Community Edition that has now support for Android. As for what version of Java you should use, it doesn't matter.

PS: Next time please do not create new thread just because you did not receive fast reply.