- Example and discussion.
- dated
Tuesday, August 23, 2011
Calling C Code from Java
http://www.mactech.com/articles/mactech/Vol.13/13.09/CallingCCodefromJava/index.html
Java Buffered Reader
http://download.oracle.com/javase/6/docs/api/java/io/BufferedReader.html
- import java.io.BufferedReader;
- BufferedReader in = new BufferedReader(new FileReader("filename"));
Monday, August 22, 2011
How Do I Include a Class
If the class is not in a package, simple put the compiled class file in the same directory and the class you are compiling.
If the class is in a package, build a directory structure beneight the directory of the file you are trying to compile that mirrors the package structure.
Printing Multiple Integer Variable to Screen
http://answers.yahoo.com/question/index?qid=20070823130012AA3mejM
System.out.println("something=" + var1);
Thursday, August 11, 2011
Java Review: Tuesday, August 9, 2011
Need to do a quick review of Java:
What is Java?
- A high-level programming language
- characterized by following buzzwords:
- Simple
- Object oriented
- Distributed
- Multithreated
- Dynamic
- Architecture neutral
- Portable
- High performance
- Robust
- Secure
- The Java Language Environment explains buzzwords.
- Java VM (Virtual Machine)
- bytecodes
- Java Platform
- two componets
- Java Virtual Machine
- Java Application Programming Interface (API)
- advances in compiler and virtual machine technologies are bringing performance close to that of native code
- Development tools
- compiler
- javac
- launcher
- java
- documentation tool
- javadoc
- API
- basic objects
- networking
- security
- XML generation
- DB access
- Java SE 6 Documentation
- JDK
- Java Language
- Tools and Tool APIs
- java
- javac
- javacdoc
- apt
- jar
- javap
- etc.
- JRE
- RIAs (Rich Internet Applications)
- Java Web Start
- Applet/Java Plug-in
- User Interface Toolkets
- AWT
- Swing
- Java 2D
- Integration Libraries
- IDL (Interface description language
- JDBC
- JNDI
- RMI
- RMI-IIOP
- Scripting
- Other base libraries
- Beans
- Intl Support
- Input/Output
- JMX (Java Management Extensions)
- JNI
- Math
- etc.
- lang and util base libraries
- java.lang
- java.util
- java.concurrent
- java.util.jar
- java.util.zip
- etc.
- Java Virtual Machine
- Java Hotspot Client and Server VM
- Documentation has not been updated for Java 1.7
-
Java System Properties
http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html
Need to get the java file type identifier window running under Linux.
Written currently for DOS/Window's separators.
Also used the "user.dir" property to see where the application was running in Eclipse.
String separator = System.getProperty("file.separator");
Java Constants
There is no 'const' declaration in Java. Use static and final instead.
Use static and final to create 'constant' like declarations.
public static final int MAX_WIDTH = 10;
Java constants
Saturday, August 6, 2011
Setting Up a Free Shell with shellmix.com
(L)ogin : stanhughes
(M)ySQL : Asog4lam
(P)ass:
(S)hell : tcsh
(E)ditor: /usr/local/bin/pico
(T)erminal: xShell
(B)ackspace: N
(I)nterrupt: ^C
(K)ill Key: ^U
Need to use port 22 to connect.
Email is stanhughes@shellmix.com
Subscribe to:
Comments (Atom)