background preloader

Java Programming Cheatsheet

Java Programming Cheatsheet
This appendix summarizes the most commonly-used Java language features in the textbook. Here are the APIs of the most common libraries. Hello, World. Editing, compiling, and executing. Built-in data types. Declaration and assignment statements. Integers. Floating-point numbers. Booleans. Comparison operators. Parsing command-line arguments. Math library. The full java.lang.Math API. Type conversion. If and if-else statements. Nested if-else statement. While and for loops. Break statement. Do-while loop. Switch statement. Arrays. Compile-time initialization. Typical array-processing code. Two-dimensional arrays. Ragged arrays. Our standard output library. The full StdOut API. Our standard input library. The full StdIn API. Our standard drawing library. The full StdDraw API. Our standard audio library. The full StdAudio API. Redirection and piping. Functions. Libraries of functions. Our standard random library. Our standard statistics library. Using an object. Creating an object. Instance variables. Constructors. Classes.

5 Great Resources To Learn How To Code However, more often than not, there seems to be a problem of actually finding good content online that can teach you to code. Experimenting with a language can only get you so far. To master it, you need to have proper guidance from people who actually know what they are talking about. So where can you find expert guidance without shelling out a fortune for it? Dream In Code Just taking a look at their logo ought to tell you that the community at Dream In Code isn’t something to mess around with. They have everything. They also have a video channel and links to developers’ blogs if you want to look deeper. W3Schools If what you want to master is a Web technology, you’ve got to give W3Schools a look. You can get tutorials ranging from plain-Jane HTML, right up to AJAX and the likes. Eloquent JavaScript If you’ve ever had to use a Greasemonkey Script or a Bookmarklet, you have a clue about the kind of power that JavaScript possesses. TryRuby A Miscellany of HTML5 Tutorials

40 Online Generators for Web Designers Should Bookmark Online Generators for Web Designers can be a great way to save time in your web design projects. High-quality generators can create graphics or code or even layouts in a matter of seconds or minutes, things that might take an hour or more if done by hand. Online generator are those tools that help us to create those popular “XHTML valid” CSS banners, micro buttons or css website templates in seconds. In such cases online generators can be of great help which do the necessary job and some tools don’t have to be downloaded also. We all know that backgrounds play a crucial role in a design. Advertisement 1. XML /SWF charts are used to create attractive graphs and charts from XML data, Create a source either manually or generate dynamically then pass it to the XML chart’s flash file. 2. The web form generator from Web Form Factory automatically generates he necessary backend code to tie your form to a database. 3. 4. 256 Pixels 5. 80 x 15 brilliant Button Maker 6. 7. 8. 9. 10. 11. 12. 13. pForm

J2ME Tutorial, Part 1: Creating MIDlets Java 2 Micro Edition (J2ME) combines a resource-constrained JVM and a set of Java APIs for developing applications for mobile devices. This article is the first in a series. This time, after a quick introduction to J2ME, I will provide a step-by-step guide to creating J2ME applications, also known as MIDlets, using a simple example. This will cover how to test and deploy these MIDlets as well. Finally, I will round out this installment with a look at the lifecycle of a MIDlet. What is J2ME? J2ME combines a resource constrained JVM and a set of Java APIs for developing applications for mobile devices. Do you, as a developer, have to install this JVM and the APIs on mobile devices? J2ME can be divided into three parts, as shown in Figure 1: a configuration, a profile, and optional packages. The most popular profile and configuration that Sun provides are the Mobile Information Device Profile (MIDP) and Connected Limited Device Configuration (CLDC), respectively. Figure 2. Step 1: Design

A Quick, Painless Introduction to the Java Programming Language Norman Matloff University of California, Davis ©2001, N. Matloff March 6, 2003 1 Why All This Hype over Java?2 Learning Java3 A 1-Minute Introductory Example4 A 30-Minute Example 4.1 Example Program 4.2 Source Code 4.3 Creating Objects 4.4 Class/Instance, Public/Private 4.5 "Pointers" in Java 4.6 Setting Up Arrays 4.7 Java's "this" Construct5 Exception Handling in Java6 I/O in Java7 Strings in Java8 Debugging Java Programs9 Classpaths and Packages 9.1 Classpaths 9.2 Packages 9.3 Access Control Revisited10 Jar Files11 Inheritance12 Advanced Stuff 12.1 What Else Is There to Java? 1 Why All This Hype over Java? For the past few years, the press has been full of sensational stories about Java. 2 Learning Java Given these nice features, and given the fact that reportedly Java has overtaken C++ as the language in highest demand by employers, this is a language worth learning. 3 A 1-Minute Introductory Example Here is the obligatory "Hello World!" javac Hi.java from the command line. java Hi as

The Shapes of CSS Learn Development at Frontend Masters CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. Add border-radius and you can round that shape, and enough of it you can turn those rectangles into circles and ovals. We also get the ::before and ::after pseudo elements in CSS, which give us the potential of two more shapes we can add to the original element. Square Rectangle Circle Oval Triangle Up Triangle Down Triangle Left Triangle Right Triangle Top Left Triangle Top Right Triangle Bottom Left Triangle Bottom Right Curved Tail Arrow via Ando Razafimandimby Trapezoid Parallelogram Star (6-points) Star (5-points) via Kit MacAllister Pentagon Hexagon Octagon Heart via Nicolas Gallagher Infinity via Nicolas Gallagher Diamond Square via Joseph Silber Diamond Shield via Joseph Silber Diamond Narrow via Joseph Silber Cut Diamond via Alexander Futekov Egg Pac-Man Talk Bubble TV Screen Lock

The 32 Totally Essential (and Free) Apps for Every New PC - Page 1 You have to admit, Windows is a pretty barebones operating system, feature-wise. After a fresh install of XP or Vista (perhaps following a Clean Start), you're faced with a barren Start Menu and an empty desktop that's beaming with limitless potential. The problem is that it's up to you to hunt and download those applications that you really need in your day-to-day computing experience. We've put together a list of what we think are the most essential PC apps for every Maximum PC reader. And at the end of the feature, we'll even show you how to install these apps in one fell swoop with a special configuration file we've created. WinDirStat Have you ever sorted a folder by file size, hoping to track down a hard disk hog, only to be frustrated by the fact that Windows doesn’t let you see the size of nested folders’ contents? AnyDVD For hassle free rips of DVD, Blu-ray, and even HD-DVD content, there's no simpler app to use than AnyDVD. Foxit PDF Reader VMWare Server Steam Dropbox

Peopleware - Book Summary This book was written by Tom DeMarco & Timothy Lister . This summary of Productive Projects And Teams was done by Bernard I. Ng while in Sun's CIM Technology Group in 1991. Table Of Contents Preface Chapter 1: Somewhere Today, a Project is Failing Chapter 2: Make a Cheeseburger, Sell a Cheeseburger Chapter 3: Vienna Waits for You Chapter 4: Quality - If Time Permits Chapter 5: Parkinson's Law Revisited Chapter 6: Laetrile Chapter 7: The Furniture Police Chapter 8: "You Never get Anything Done Around Here Between 9 and 5" Chapter 9: Saving Money on Space Chapter 10: Brain Time Versus Body Time Chapter 11: The Telephone Chapter 12: Bring Back the Door Chapter 13: Taking Umbrella Steps Chapter 14: The Hornblower Factor Chapter 15: Hiring a Juggler Chapter 16: Happy to Be Here Chapter 17: The Self-Healing System Chapter 18: The Whole Is Greater Than the Sum of the Parts Chapter 19: The Black Team Chapter 20: Teamicide Chapter 21: A Spagetti Dinner Chapter 22: Open Kimono Chapter 23: Chemistry for Team Formation

Git for the lazy - Spheriki From Spheriki Git is a distributed version control system . No, you don't need to know what that means to use this guide. Think of it as a time machine: Subversion or CVS without the cruft. If you make a lot of changes, but decided you made a mistake, this will save your butt. This guide is for people who want to jump to any point in time with their project/game/whatever, and want something to use for themselves. Windows For Windows, you have two options: msysGit Download and install msysGit to use Git in Windows's cmd.exe console. Cygwin Download Cygwin . Put setup.exe in a folder of its own in your documents. Launch setup.exe . While installing Cygwin, pick these packages: from the DEVEL category (if you're wimpy) or (if you know it), both in the EDITORS category You'll now have a shortcut to launch Cygwin, which brings up something like the Linux terminal. Linux Install the git package using your preferred method (package manager or from source). Fire up your Cygwin/Linux terminal, and type: git init

7 Reasons You Should Use #Hashtags In Your Tweets - The Link Medic - Free Blogging Resources A hashtag is simply a keyword marked by the # symbol in front of it. In some geekier circles it’s known as an octothorp, which might be good to know if you’re appearing on Jeopardy. It is used to help categorize tweets and help you find similar ones using that topic’s tag. They are mainly used as an interactive search function and not for labeling idea they were originally invented for. Example: Optimize your Blogger post titles for better PR in minutes with one code – – #blogger #SEO I use mine on the end of the tweet but a tag could be any word in the tweet itself. Many of you no doubt use these in every tweet but you may not know of its true potential, especially if you’re not using them regularly. 1. 2. 3. 4. 5. 6. 7. Incoming search terms: Find More Like This:

Skulpt Tutorial - Learn Python in 10 minutes | Stavros... NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object). Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Python has no mandatory statement termination characters and blocks are specified by indentation. Strings

Java Examples - Learn Java Programming by Examples

Related: