So, how would you remove a duplicated number in an array list without using "Collection.removeAll(Collection<?> c) " out of interest?
Out of interest, put in some data and we may play around ;)
So, how would you remove a duplicated number in an array list without using "Collection.removeAll(Collection<?> c) " out of interest?
Out of interest, put in some data and we may play around ;)
I'm not aware of any "quick" tutorial. There is the official Oracle tutorial as linked above, there are some Eclipse based tutorials like this and then the long route of book reading
Is this possible to remove element by its index value?
Possible but recommended only in "small dozes" as you may easily introduce bugs to your logic
That is easy, after you made your ArrayList object (yourArrayList in this case) just do:
yourArrayList.remove(index) // index of tipe int
This is time consuming in case if you have multiple elements to remove, you would better to either use Collection.removeAll(Collection<?> c) or perhaps use of Maps
Given your laziness to use Google with 'Java mobile development' query and ignoring this forum sticky post on top of this section , I guess nobody can help you...
Can you tell me the exact code for this?
Code for what?
If you looking for "hosts" just google for hosts operating system name you use and add domain. If you want to know about Web Services then you should read either book or Oracle tutorial (there is no "silver bullet"/fast solution for this)
Yes, you either adjust your "hosts" file to fake domain on your pc or just query localhost
I wouldn't build against any of IE versions. Use either Firfox or Chrome (Firefox has FireBux and Chrome has build in Inspect Element functionality) and then test it for various IE versions.
Yes, if you provide Web Service
Both section Java and Mobile Development have their own sticky posts where you can check on number of recommended resources
U need to watch this tutorial ...
follow the all instructions carefully...
That is for lazy idiots that cannot bother to read link from documentation. If you can't be bothered now, what will you do latter when you must read stuff???
Thank you for your down-vote Mr CTO, if you did not spot it yet you are in "small bugs and programming errors" section and not hyped technologies advise research subsection for lousy CTOs.
Is using JSP suitable for low budgets when it comes to hosting, development, maintenance? Therefore is it suitable for small low budget company websites?
>> Bad question since you should be looking at it as "do we have available resource or we need to hire/train someone to be able to support our needs for given technology
Is JSP faster? In other words does the pages in JSP load faster than those in PHP?
>> Wrong question, since there has to be some measuring matrix as what we are trying to measure. There are numerous examples of messed up web sites done in PHP and also JSP. Each of them can perform well if properly done.
Is JSP more formal? In other words is JSP used more for corporate and company websites unlike PHP, which is used a lot for online stores, blogs and homemade websites?
>> There is nothing as "formal", there is something called functionally advisable. However in your case it wouldn't help as you are looking at technology to solve your problem and not investigating problem, try to understand what is the problem, what we expect to achieve and only then to look for most suitable solution/technology (shall I buy my sales iPhones so we look like …
Given that you are new to Java development I will pretend I didn't hear ignorance. Java web development is not anymore just about JSP there is large amount of frameworks to choose from that can be used to build Java based website.
So why don't you come up with more specific questions instead of general non-sense that could be sorted out by simple research...
I have installed SDK. But how to work with it. I mean that I did not found any note pad for writing code.
Please give me some instractions.
Thank you.
There is number of IDEs that can use Android SDK an help you with development. Just read install from Android website
for(int i = 0 ; i < 10 ; i++){
if(x == 0 ){
System.out.println("Zero");
}
else if(x == 1 ){
Syetem.out.println("One");
}
}
As expected you did not add your libraries properly. You see if you posted steps (a proper problem description as I suggested) anyone would have told you that you didn't do it properly...
So why not to share solution...
Sorry your reply is not clear due to poor problem explanation with either limited English or lazy written English. So if you try to explain more in detail I'm sure someone can help you.
Not sure about Sun/Oracle direct API, but when I was using SonyEricsson JME SDK this came with documentation
1) Most of the IDEs have way how to import external libraries, so either tell us which you use or search for your self
2) Using building tools Ant, Maven, Gradel you can add dependencies that your project needs
Since you are able to read your Ant build you are able to determinate absolute path of the file, that mean that you are able to get parent path. With this data and with info from build file you shouldn't have any problems.
Direct link
Our forum references, in Starting mobile development [SDK / tutorials / resources / faq]
This should be fine, these messages you would see if deployment is done in certain time-frame. One of the reasons why I suggested to start emulator before it instead of waiting for IDE to get through whole process on its own
@aanders5 did you resolved your problem or still having issues? In worst case scenario I can download Eclipse and make sample of project for you
Android emulator is little slow for start, so what you can do is have emulator running and minimize it. Then when your application successfully compile and you attempt to run it, IDE doesn't have to wait for emulator start and can immediately deploy your application. If you added ANDROID_HOME with links to tools and platform-tools directories to your PATH you can use following commands:
- to list all available avd devices android list avd
sample output
Available Android Virtual Devices:
Name: 2.3.3
Path: /Users/peter/.android/avd/2.3.3.avd
Target: Android 2.3.3 (API level 10)
ABI: armeabi
Skin: WVGA800
Sdcard: 9M
- to run specific emulator by name emulator -avd 2.3.3
or shorthand emulator @2.3.3
where to 2.3.3 is the name of avd that you got listed from previous command
I guess you are referring to "After you create one or more Android projects, an entry for "Android XML File" will also be available." I guess it is some background mechanics that will enable this option, since you had no reason to create "brand new" xml resource file this is not available yet. This option just let you use Android XML template when creating new resource file
1) moved to Mobile Development section
2) make sure that no of your classes has following import import android.R;
otherwise IDE would not be able solve resources properly
3) sometimes you may get warning about IDE not to able resolve something in R because many tutorials do activities and other Java classes examples before XML layouts
PS: Forget NetBeans they are far behind Android support, use either Eclipse or IntelliJ Community edition (personally I use IntelliJ, there is new version coming out with some new additions/improvements to Android development)
@Hauth don't you think that after 2 years the issue is either solved or long time abandoned?
@above. I feel it is an assignment for them to create a course class.
Unlikely. With these sort of assignments you are expected to create certain object type and show how you can use it with collections.
So better get that array out of Course class, and create Course array in main method where you can then do as follows
Course[] course = new Course[100];
course[0] = new Course("Java Development", "Peter");
course[1] = new Course("Web Development", "stultuske");
//etc
More and more excuses from your side. Example "Java iReport tutorial" will give as first hit iReport tutorial section. Do similar search for any other library you may like to use and I'm sure you will get plenty of resources.
If you searched "java report library" you would already had answer and didn't have to post and shame your self with ignorance
Whole snipped is confusing, OP absolutely abuses coding standards, plus we have no idea what are these objects "or_data, counts" or what is "isHit(x, y)" doing or if it is doing it job correctly.
If you actually check out the top post, Starting mobile development [SDK / tutorials / resources / faq], you wouldn't post this redundant question
That looks like JSON output to me
You should be using the first connection string as 1521 is port on which Oracle database let you communicate by default. Port 8080 is HTTP alternate commonly used by Tomcat or other Java containers(servers).
Secondly you are trying to setup Java database connection so use JDBC driver
LibraOffice hasn't got any database, but does provide front-end suite, Base, that let you connect to different databases. You better check the features here
If you tell me where in your PreGUI you call DrawClass and I will tell you why it is not drawing.
Thanks for your advice. I will try it also.
If you shy of big IDEs you can always try simple environments like JCreator or Notepad++
How did you get to this weird folder structure? Never seen
Usual project structure would be
where "target" is populated by your IDE (Eclipse, NEtBeans, etc) or by build tools like Ant, Maven etc
So would you care to explain how you got to such folder structure?
Try
Display display = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
int width = display.getWidth();
int height = display.getHeight();
PS: Better to move something like Eclipse or IntelliJ that have better Android support
1) I do wonder if you did direct copy or paste since your interface Date class is wrong java.Util.Date
2) You should have used java.sql.Date
3) I received up-vote from you for MVC tutorial, so I would have expected from you to use PreparedStatement instead of single & double quote hell
4) If you get exception it is always best to post exact error
Sorry I do not have time to check your code, but you can get working copy from my github here and compare way of connectivity. Application is working copy of application from Pro Android 3 book, chapter 3
Ideal would be to post in JavaScript section instead of Java. Post moved...
Read in string, give it to Integer for parseInt and see if it succeed or throw exception. On success check if bigger then 2
Most of the opening in Java for Experienced is in Struts/Hiberate/EJB and other frameworks
and J2EE.
>> You should get some background in persistance, any of EJB/JPA/Hibernate/myBatis would do. As long you get principles you would have no problem to adapt on rest of them
Please help and give me direction is it worth to work in Core Java with XML and gain experience in that.
>>Core Java and XML can let you easily learn Android development
Should I study J2EE side by Side even it is not being used in project ???
>>Fresh developers, specially, should spent extra time learning stuff need it at work, extend their knowledge (reading books, watch/join open source project, or just participate on coding forum like daniweb for example)