peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@~s.o.s~ (-: why you have to sent here your post twice :-)

Sometimes happens when there is lag on your internet connection or on server side.
~s.o.s~ Set is obvious solution :P

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

in order to make Andriod game do i have to use specific IED for example in order to make iphone app you have to use XCode so is it fine if i use BlueJ as IED???
>>Little bit of search from your side wouldn't hurt. Do not expect to be spoon-fed basic stuff that can be found easily on internet. That is just lame.
Quick search and it is clear that you can build Android application with BlueJ, but you will face difficulties with project folder structure and you will need to do manual build because BlueJ is not friend with Ant. Best approach use IntelliJ or Eclipse.

is their any rules that i have to follow in order to make game for Andriod
>> Be my guest and happy reading Beginning Android Games of course you should start with something like Beginning Android 3

I lent how to make games in iphone using iTune so is their any videos or anything that i can use to learn about Andiod app because i want to add features like touch screen and so on.
>> I'm sure there plenty of videos, but I do not care as their hopeless, noting can beat well written book or good tutorial and most importantly hours of coding, trying, failing and sometimes succeeding.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, since Android API is based around Java, and no as you better do some configs with XML as this can reduce Java code base for lot of stuff

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@maverick420 more initiative would be better, instead of waiting to be spoon-fed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dude ! ! !

BlueJ is just IDE, a tool that helps you with coding just like IntelliJ, Eclipse, NetBeans or other available IDE

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I did not said to move out of main method I said move it at the end of last if/else. Dead simple...

import java.util.Scanner;
public class minNmax
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n1, n2, n3, n4, n5, Num2Digit=0, Num3Digit=0,Max=0, Min=0;
		int Num2Sum, Num3Sum;
		 Num2Sum=Num2Digit;
		 Num3Sum=Num3Digit;
		System.out.print("Enter first number: ");
		n1 = input.nextInt();
		System.out.print("Enter second number: ");
		n2 = input.nextInt();
		System.out.print("Enter third number: ");
		n3 = input.nextInt();
		System.out.print("Enter forth number: ");
		n4 = input.nextInt();
		System.out.print("Enter fifth number: ");
		n5 = input.nextInt();
		if(n1 >= 10)
		{
                           n1=Num2Digit;
			Num2Sum += n1;
			Min +=1;
		}
                  else if (n1 > 99)
		{
			n1=Num3Digit;
			Num3Sum += n1;
			Max +=1;
		}
                  else if(n2 >= 10)
		{
			n2=Num2Digit;
			Num2Sum += n2;
			Min +=1;
		}
                  else if (n3 > 99)
		{
			n2=Num3Digit;
			Num3Sum +=n2;
			Max +=1;
		}
                  else if(n3 >= 10)
		{
			n3=Num2Digit;
			Num2Sum += n3;
			Min +=1;
		}
                  else if (n3 > 99)
		{
			n3=Num3Digit;
			Num3Sum +=n3;
			Max +=1;
		}
                  else if(n4 >= 10)
		{
			n4=Num2Digit;
			Num2Sum += n4;
			Min +=1;
		}
                  else if (n4 > 99)
		{
			n4=Num3Digit;
			Num3Sum += n4;
			Max +=1;
		}
                  else if(n5 >= 10)
		{
			n5=Num2Digit;
			Num2Sum += n5;
			Min +=1;
		}
                 else if (n5 > 99)
		{
			n5=Num3Digit;
			Num3Sum += n5;
			Max +=1;
		}
	System.out.println("Sum of tow-digit numbers is ---> " + Num2Sum);
	System.out.println("Sum of three-digit numbers is ---> " + Num3Sum);
	System.out.println("There are total " + Num2Digit + " two digits numbers");
	System.out.println("There are total " + Num3Digit + " three digits …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This would be case of URL masking done through web.xml where you say that any served page will use this URL. Just search for jsp url masking and you get plenty of results, or some decent book on JSP

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That will be because you print results before you actually calculate them. You can either:

  • move system print message at the end of your if/else section
  • create methods that will do your calculations and just call them from system prints
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Raja Pandiyan, please do not use Flag Bad Post button to post your replies as this function is for reporting posts that may be breaking forum rules in some way.
Either use Post Reply or just scroll down to bottom and you will see basic posting window where you can type your reply

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why don't you visit Android Market or Apple Store for games ideas. There is plenty of them and some of they could get some makeover

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no JVM for iPhone so no chance (read this)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I hope you are using only one location as there can be some issues if library placed in both "lib" directories

Alos not sure what you mean by "I have already placed it the the project's build path".

PS: There are specific steps you need to do for each IDE to link any library to the project

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Where did you placed this JAR file? Two options available TOMCAT_DIR/lib if you want library to be available globally to any project deployed on this server or TOMCAT_DIR/webapps/YOUR_PROJECT/WEB-INF/lib to be available to only your project

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

AJAX asynchronous call would be better option for this

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

Hmmm, seems that NetBeans did change lately and one cannot run single file as it has been in the past.
Ok, do following

  • Create new project - Lab2
  • Create new package - lab2 - inside this project
  • Create new class -Lab2.java - inside above package
  • Press "Run" button (big green triangle on top menu bar), it will tell you it hasn't got set main class set for project, so if just confirm default of "lab2.Lab2" if you followed above instructions

Next time you will need to copy whole project structure and open project instead of single file.

918_Nix commented: Spot On! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please post exact errors you getting

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@918_Nix please consider to check first date when post was created, then last date for reply and try not to reply to stuff that is too old (older then 6 months can be good measurement for start)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not know if it is mistake on your side while copy&paste here but you are missing two closing brackets } }

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have a couple of questions regarding Mobile Development, are all mobile apps developed using xcode and objective C ?
>> First think coming to my mind is "WAKE UP DUDE!" there are other things then iPhone, such as Android that is Java based with XML configs and BlackBerry with Java Microedition and of course Nokia's Qt plus there is Python for most of them and you can use also HTML5 with some JavaScripting

I take it these are zipped up and offered as a download on an app store so to speak at a small cost ?
>> They are packaged in their respective file types

Is it possible to make a mobile app out of web based technologies and then offer as a download or would it have to be through a subscription service ?
>> Many commercial websites do browser detection and if mobile device detected they offer download of application (often based on WURFL library)

Or would the website have to act as the game and the users would just visit the site and view it as normal website on a mobile device.
>> See above

PS - Mobile Development is all new to me, and I keep on getting companies phoning saying they want the latest developers with HTML5 experience.
>> Of course everyone want HTML5 experienced people as they want to use potential of it and ditch often hopeless designs hard to upgrade

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Most commonly seen are the jQuery one that also enables you to interact with graph in various ways, plus they can be easily refresh (locally on the page). So I would go with jQuery that is essentially JavaScript

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1) Welcome to the forum
2) You need to be more specific on issues, as from Phonegap -Get started Guide I do not see any difficulties. Its reasonably simple step-be-step tutorial
3) You need to stop writing in sms/chat speak or improve on English language as it is forum requirment

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do what? Config changes or web service?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Remove servers like your personal installation are by default these days enabled only for localhost. That mean that only application that is on that machine can access it. If you want to get remote access then you need to change configuration (danger of mistakenly exposing your database to whole world without proper security) or you need to build a service that will serve data on request (web services approach)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That can be an issue, I'm not aware of any Windows mobile developer on the forum :(

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hmm... No reply for this thread... I thought the platform was Linux because the TO talked about "bin" folder which is supposed to be looking for usable command line in Linux. Though, to start/stop in Linux, it is not from there but could be from /etc/init... instead.

Depends on the installation. If you download zip or tar then you will start through INSTALATION_DIRECTORY/bin/startup.sh(bat)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Windows and spaces in the files/folders names (puke face here). See this article for Java installation, you will find there also how to set PATH for various OS

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

download tomcat 6.0 from apache website for the particular os,
still getting problem uninstall & reinstall it.

Typo in any configuration of files can be easily discovered if yo just read logs. Unistall and reinstall option is for lazy people that cannot be bothered. Your replies is therefore of very low value.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Didn't use neither of them so hard to say, but there seems to be reasonable summary on stackoverflow

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Clear all old logs in YOUR_APACHE_DIRECTORY/logs, try to start server and then post content of catalina.out here.

PS: Any reason using 5.5.25 that will soon be dropped from support when there is Tomcat 6 and 7?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please have look at this post about installation. If you on Windows instead of installer use zip and extract, this give you more control over start/stop

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Above code only show how you load data for initial display, doesn't tell us what rest of the code is doing and how the above method is integrated in that code
2. You should call a dedicated method that will return table data in correct format instead of establishing connection inside display method each time that method is called

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Recently OpenMeeting project submitted proposal for submission to Apache Incubator. Linked wiki proposal page also list access to Subversion(SVN). Have look on their codebase.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can thank properly by closing thread (Mark this Thread as Solved under last post)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well if you searched before posting you would have found for example this post by Ezzaral

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Without code nobody will know.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed thank to stupidity of @zaidrziad and @stevanity. Take it as warning to read our rules or next time you get
Keep It Legal
one for sharing such materials

Do not post copyright-infringing material

and other for requesting

Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no DataBaseHelper constructor, therefore error.

PS: As Taywin pointed out assignment part of line 9 new DataBaseHelper(null) should be replaced by new DataBaseHelper(CONTEXT); .
PS2: You can have look at this sample I put on github few weeks back. It is from Pro Android 3 book

kvprajapati commented: Thanks! It helped me a lot :) +15
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you search you may for sure find some, but put it this way, every chapter of the book ends with extensive test that will test your understanding of finished subject, plus there is a CD with some additional tests.

PS: Do not get fooled with online offers for "free" or cheap try-out exam test, they just use whatever is in book...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you are fresh in Java then SCJP Sun Certified Programmer for Java 6 Study Guide is best thing. Books is little expensive, but worth it( you can find plenty of second hands also)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Put it in XML as it gives you easy way parsing it as whole blocks. Example:

<question>
  <answerOne/>
  <answerTwo/>
  <answerThree/>
  <correctAnswer/>
</question>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And why would you want to have something like that????

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

So if I declare my arraylist like this would be fine?

ArrayList <Double> rrr = new ArrayList<Double>();

Why don't you try and tell me :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You cannot use primitive type like int, double, float etc with Collection, you need to to use wrapper classes like Integer, Double etc

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So how does it differ from MVC model?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you say that MVC is not part of your requirement , would you be able to explain me principles of DAO?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I had some funny issues with classes from same packages not being found. Try to add import com.tabex.displaymap; into class maps

PS: Would be nice if you also adhered naming convention like class name starting with upper letter "DisplayMap" or "Maps"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want to keep your score somewhere permanently then you have to store it somewhere or it will be lost once you close your application. Your two options are either to work with files or with database. Simple file example can be used from Oracle Java tutorial - Reading, Writing, and Creating Files

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Record it in external file, associate player name with score and update score for "the" player