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. Printing. Parsing command-line arguments. Math library. The full java.lang.Math API. Java library calls. Type conversion. If and if-else statements. Nested if-else statement. While loops. For loops. Loops. Break statement. Do-while loop. Switch statement. Arrays. Inline array initialization. Typical array-processing code. Two-dimensional arrays. Inline initialization. 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.

http://introcs.cs.princeton.edu/java/11cheatsheet/

Related:  Zip Code - 01

What DevOps Is Not This is a guest post by R.I. Pienaar (@ripienaar) Many blog posts have been written about what DevOps is or what it means to specific people. FBI The FBI’s Reading Room contains many files of public interest and historical value. In compliance with the National Archives and Records Administration (NARA) requirements, some of these records are no longer in the physical possession of the FBI, eliminating the FBI’s capability to re-review and/or re-process this material. Please note, that the information found in these files may no longer reflect the current beliefs, positions, opinions, or policies currently held by the FBI. The image quality contained within this site is subject to the condition of the original documents and original scanning efforts. These older files may contain processing procedures that are not compliant with current FOIA processing standards. All recently scanned images posted to the Reading Room adhere to the NARA 300 DPI standard.

Zen Coding: A Speedy Way To Write HTML/CSS Code - Smashing Coding Advertisement In this post we present a new speedy way of writing HTML code using CSS-like selector syntax — a handy set of tools for high-speed HTML and CSS coding. It was developed by our author Sergey Chikuyonok and released for Smashing Magazine and its readers. How much time do you spend writing HTML code: all of those tags, attributes, quotes, braces, etc. You have it easier if your editor of choice has code-completion capabilities, but you still do a lot of typing. Jekyll Quick Start Host on GitHub in 3 Minutes Make sure to input your GitHub username so the instructions reflect the exact code you need to run to host your blog. 1. Create a New Repository Go to your and create a new repository named USERNAME.github.com Udesign Custom Wallpaper Udesign is a brand new UK-based custom wallpaper company that specializes in personalized wallpaper, stickers, canvas prints or murals. Udesign also offers over 3000 professional template designs. To celebrate their launch they’re holding a design competition with MyDeco. Click here to learn more about how you can enter and have your original designs sold on their site.

Abstract Classes and Methods (Java in a Nutshell) In Example 3-4, we declared our Circle class to be part of a package named shapes. Suppose we plan to implement a number of shape classes: Rectangle, Square, Ellipse, Triangle, and so on. We can give these shape classes our two basic area() and circumference() methods. Now, to make it easy to work with an array of shapes, it would be helpful if all our shape classes had a common superclass, Shape.

Chart: Should You Have Kids? momlogic's Momstrosity: To procreate or not to procreate -- that is the question. Here is the answer. ( Click on image to enlarge) Chrome Web Store Tutorial: A Countdown App This tutorial and its components can be downloaded from In this tutorial, we'll build a simple countdown app, with opportunities for you to expand it afterwards. You'll learn about creating, testing, and deploying Chrome apps. This is a packaged app (as opposed to a hosted app), so it has sufficient privileges to perform extension behaviour, and we'll be making use of that. You can install the finished app in Chrome.

64 Things Every Geek Should Know « Caintech.co.uk If you consider yourself a geek, or aspire to the honor of geekhood, here’s an essential checklist of must-have geek skills. The term ‘geek’, once used to label a circus freak, has morphed in meaning over the years. What was once an unusual profession transferred into a word indicating social awkwardness. As time has gone on, the word has yet again morphed to indicate a new type of individual: someone who is obsessive over one (or more) particular subjects, whether it be science, photography, electronics, computers, media, or any other field.

Lambda Expressions (The Java™ Tutorials > Learning the Java Language > Classes and Objects) One issue with anonymous classes is that if the implementation of your anonymous class is very simple, such as an interface that contains only one method, then the syntax of anonymous classes may seem unwieldy and unclear. In these cases, you're usually trying to pass functionality as an argument to another method, such as what action should be taken when someone clicks a button. Lambda expressions enable you to do this, to treat functionality as method argument, or code as data. The previous section, Anonymous Classes, shows you how to implement a base class without giving it a name.

Google facts and figures (massive infographic) Posted in Tech blog on February 24th, 2010 by Pingdom Google has perhaps more than any other company become “The Internet Company.” It’s grown hand in hand with the internet and its entire business model has from the start been totally focused on the internet as a delivery platform. And let’s face it, Google is a pretty interesting company.

Related:  java