Techniques for understanding Android Methods - java

I have just finished up my first book on Java training and I think I am getting closer to understanding. I am currently looking for some good resources to improve my java understanding.
So far I have read through http://mobile.tutsplus.com/tutorials/android/java-tutorial/ however I am still not clear.
what is the best way to find out all the possible methods that relate to an Android Object. Is there something in eclipse which can make it clear?
Please can you point me in the right direction? and giveing an example that a beginner would understand would be wonderful and much appreciated!

Well, I guess the best way to find any method or class is to look in the Android API which can be found here:
http://developer.android.com/reference/packages.html
And this is the Java API which works the same way:
http://docs.oracle.com/javase/6/docs/api/
You can search for classes and find which methods and properties they have.
You should have direct access to the API from the Eclipse code completion: http://showmedo.com/videotutorials/video?fromSeriesID=6&name=IntroductionToEclipseWithJava2_JohnM
I would also reccomend WiBit.net for more tutorials on both Java and Android if you are a beginner. They have some awesome free material:
http://www.wibit.net/curriculum/courses/programming_java
TheNewBoston also have some nice tutorials on android where you can pick up more although they are not as good as the WiBit ones:
http://www.youtube.com/playlist?list=PL34F010EEF9D45FB8

Related

Getting started with java web applications

this is my first question on stack so if i missed tag or did something wrong please have understanding.
I would like to start building web applications (or web services).
I have following knowledge:
Java programming more than basic but dont think i m really intermediate
Html basics
Css basics
I started trying java spring, and although it has a lot of small piece tutorials which i understand when looking the code, i still have no idea how would i build my own web application
My question would be: how to dive into this kind of development?
Are there any good tutorials that show builsing a fully intereactive app or something simmilar because i feel like running through cornfield right now, and stumbling on different parts of knowledge that is partialy useful to me..
I would be really gratefull on any tips on what steps to take and what to learn.
You can go through guides on Spring's site https://spring.io/.
For each term that is not familiar, you can find all the documentation written by the Spring team.
Also it is good for you to start learning Hibernate at the same time.
There are good video tutorials but I prefer books and articles, for example: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html

Is it appropriate to learn and use the ACM package for JAVA?

Right now I'm watching the Stanford's channel in youtube, and to be precise I'm watching the Java lectures by Professor Mehran Sahami. I already have some level of theoretical knowledge of Java but I find these lectures very interesting but there's one thing that confuses me and I want to clarify it before going any further.
In the examples there are a lot of differences from what I've seen so far in the books I've read and even in the original documentation of Sun. In these lectures the main method is as it seems public void run() insted of public static void main(String[] args). For console output he uses only println() instead System.out.println() and I suggest that going more deeply into the Java language there will be even more differencies from what I would call "the standard syntax."
From what I understand all this come from using the ACM package and I really don't know if keep watchng this will help me or just gonna confuse me more. Is this ACM package of some practical use? Does it make the Java syntax a lot more different than usual so I could end up with bunch of useless commands? Do you think it would be better to leave these videos for now and come back later when I can get use of the useful information and be more aware of the outdated stuff or the difference is not that big?
Thanks in advance
Leron
I don't think it's going to get in the way of learning Java. It provides a framework within which your code will run, much as do Java applets, Swing, Android, or some other framework. It will not be the same as vanilla Java, but the ACM package is well documented. Once you master the basic concepts, learning the extra stuff you will need to wean yourself from the ACM package won't be hard at all.
As long as you recognize the differences between the "shortcuts" provided in the ACM code and the standard syntax, I don't think there's any inherent harm in following these lectures. I've heard some decent things about the series, and if your goal is to learn the basics of the language (or fill in gaps in existing knowledge), then I think it's a fine resource.
On the other hand, I have never seen the ACM libraries used outside of an academic setting. Personally I only used them once, on a single project for a single (non-required) class while I was persuing my undergrad degree. If you're already familiar with the language, and know the basic concepts, I'd look for more standard tutorials that don't make use of esoteric or specialized code bases. For the most part, the ACM libraries seem to contain shortcuts and a standardized framework to aid in teaching (and learning) core concepts rather than worrying the exact syntax or any quirks that might be present in the language.
If I want to summarise it, I would say that the ACM Java Libraries main goal is to make you free from the syntax to help you focus on the concept.
The ACM Java Library package is an excellent tool to introduce programming concepts to newbies. As you can see the lecture's title is Programming Methodology and not Programming Java.
Hope it clarifies
I'm in this exact same situation. Rather than learning ACM, which I'm not going to use anywhere else, I decided to do the assignments using current Java technologies, for example doing the graphics portions in JavaFX. Of course this might not be the best approach for absolute beginners, who may find it easiest just to stick with ACM.
In case it helps, I'm putting my coursework in GitHub:
https://github.com/bmaupin/coursework/tree/master/cs106a-stanford
For example, here's the Target assignment: https://github.com/bmaupin/coursework/blob/master/cs106a-stanford/Assignment2/Target.java

Good start for .Net and c++ to Java transition?

I know the .Net framework very well and know where to find things ie: StreamReader, StreamWriter, Graphics, etc, and I know Java has similar things. The syntax is different but quite similar to c++ which I have a lot of native c++ experience. Therefore, what would you recomend as a good starting point for tutorials and such. Thanks
In my new job, I quickly found myself working on a common library in C++, C# and Java. I had no Java knowledge and yet found it pretty intuitive to make simple mods to the Java code - the general C# principle that there is a framework class/namespace for most things you want to do, appear to hold in Java.
The thing that bothers me is that this MO would not teach me tricks and improvements in Java that are specific to that language. That's where I would like to see other answers to this question lead.
In the meantime: http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java
btw while I found C# and Java pretty congruent, I would not say the same about C++ vs Java.
If you work in eclipse/netbeans/intelliJ it may actually be a no-brainer. Guess at a class name, start typing it and hit ctrl-space (for eclipse, others vary). Regardless of which package it is in, it will find all the classes that match and list them for you faster than you could look them up anywhere else.
The other really nice thing to have on hand is the javadocs for the SDK you are working with--you can code effectively with nothing else. They are online (just search for JDK 6.0 or whatever version) or they can be downloaded from the same place you get the JDK.
The javadocs are your friend - once you figure out some of the main packages in java.*, it's easier to know where to look for specific classes / functionality.
Once you're writing some code, buy Effective Java - it's full of tips for the language, and is just a good programming book.

where can I find websites with good java source codes that work?

HI. I am a beginner/intermediate java programmer.I'd like to see codes of useful applications used in the real world. Could anyone tell me where to look for such source codes? thanks.
SourceForge has numerous open source projects which use Java in some way. On the first page you'll see a lot of popular software you've probably used before.
I would also recommend searching Google Code ( http://code.google.com/ ) for Java programs.
This last suggestion is a bit unorthodox, but have you considered competing at TopCoder.com? After the first competition round you have the option to look at others' code. The flip side is that you need to apply critical thinking - not everyone's solution will be correct, much less optimal! You can't get any more real-world than that.
Good luck!
thank you Arkaaito.
I found the google code website very confusing to search. I didn't get many relevant searches for Java when I typed "java source code" into the search box. I'll continue trying.
As for competiting on Topcoder.com, I am not good enough in programming java to do that...perhaps you could suggest more links for me to study from to improve my skills?
I enjoy java labs that build on my programming fundamentals :-)
cheers.

What's the quickest way to play with GWT for someone with almost no spare time?

I think the subject pretty much covers it. I'm not a web programmer (I am a programmer), I'd like to write some play web apps, I don't really have a lot of spare time. So what's the quickest way to get up and running to play around with GWT?
I would say Google's GWT Quick Start. That said, learning some Java skills would be a good idea if you're not already familiar with the language.
The StockWatcher application tutorial covers pretty much step by step all you need to play around and get an idea of GWT as a beginner (provided you know a bit of JAVA).
This is part of the GWT Quick Start documentation (as mentioned also by someone else) where you can find loads of other examples and resources.
Pick an app that does something similar to what you want, and modify it piece by piece...

Categories

Resources