In the following image you can see equivalent of Gang of Four notations in UML. this is very useful for reader of GOF book.
have a nice time.
$ chmod +x yourfile.bin
e.g
# chmod +x jdk-6u14-linux-i586.bin
$
./yourfile.bin
Shortcuts | NetBeans | Eclipse |
Next editor | Ctrl + Tab | Ctrl + F6 |
Delete row | Ctrl + E | Ctrl + D |
Organize imports | Ctrl + Shift + I | Ctrl + Shift + O |
Quick fix | Alt + Enter | Ctrl + 1 |
Open type | Ctrl + O | Ctrl + Shift +T |
Run | F6 | Ctrl + F11 |
Format code | Alt + Shift + F | Ctrl + Shift +F |
Incremental search (like Firefox) | Ctrl + F | Ctrl + J |
Open resource | Alt + Shift + O | Ctrl + Shift +R |
Comment | Ctrl + / | Ctrl + / |
Move line(s) up or down | Alt + Shift + Up/Down | Alt + Up/Down |
Duplicate line(s) up or down | Ctrl + Shift + Up/Down | Ctrl + Alt + Up/Down |
Go to line | Ctrl + G | Ctrl + L |
Company name | Symbol | Market cap | P/E ratio | Div yield (%) | 52w price change (%) | |
Apple Inc. | AAPL | 230.53B | 21.50 | 0.00 | 100.18 | |
Microsoft Corporation | MSFT | 227.86B | 13.44 | 2.00 | 32.00 | |
International Business Machines Corp. | IBM | 162.08B | 12.29 | 2.09 | 22.21 | |
Google Inc. | GOOG | 156.20B | 22.22 | 0.00 | 21.24 | |
Cisco Systems, Inc. | CSCO | 135.18B | 20.06 | 0.00 | 30.22 | |
Intel Corporation | INTC | 121.07B | 19.90 | 3.02 | 38.54 | |
Oracle Corporation | ORCL | 113.33B | 20.18 | 0.90 | 19.03 | |
Hewlett-Packard Company | HPQ | 110.08B |
Runtime.getRuntime().freeMemory();
Runtime.getRuntime().maxMemory();
Runtime.getRuntime().totalMemory();
java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \
-workDir work
-perms 0
java -cp ... com.google.gwt.dev.CompilePerms com.google.gwt.sample.hello.Hello \
-workDir work
-perms 1
java -cp ... com.google.gwt.dev.Link com.google.gwt.sample.hello.Hello \
-workDir work
-war www
-extra aux
package exceltest;
import java.io.FileOutputStream;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CreationHelper;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
/**
*
* @author Saeed Zarinfam
*/
public class Main {
public static void main(String[] args) {
Workbook wb = new HSSFWorkbook();
CreationHelper createHelper = wb.getCreationHelper();
Sheet sheet = wb.createSheet("new sheet");
// Create a row and put some cells in it. Rows are 0 based.
Row row = sheet.createRow((short) 0);
// Create a cell and put a value in it.
Cell cell = row.createCell(0);
cell.setCellValue(1);
// Or do it on one line.
row.createCell(1).setCellValue(1.2);
row.createCell(2).setCellValue(createHelper.createRichTextString("This is a string"));
row.createCell(3).setCellValue(true);
// Write the output to a file
FileOutputStream fileOut;
try {
fileOut = new FileOutputStream("workbook.xls");
wb.write(fileOut);
fileOut.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
}