Die Programmiersprache Java dient innerhalb der Java-Technologie vor allem dem Formulieren von Programmen. Diese liegen zunächst als reiner, menschenverständlicher Text vor, als sogenannter Quellcode. Dieser Quellcode ist nicht direkt ausführbar; erst der Java-Compiler, der Teil des Entwicklungswerkzeugs ist, übersetzt ihn in einen maschinenverständlichen Code, den sogenannten Java-Bytecode. Die Maschine, die diesen Bytecode ausführt, ist jedoch typischerweise virtuell – das heißt, der Code wird meist nicht direkt durch Hardware (etwa einen Mikroprozessor) ausgeführt, sondern durch entsprechende Software auf der Zielplattform.
try {
final InputStream is = getResources()
.getAssets().open("levelid/levelid.json");
InputStreamReader isr = new InputStreamReader(is);
StringWriter str = new StringWriter();
int character = 0;
while (character != -1)
str.append((char) (character = isr.read()));
jsonObject = new JSONObject(str.toString());
} catch (IOException e) {
Toast.makeText(getApplicationContext(),
R.string.ioexception, Toast.LENGTH_SHORT).show();
} catch (JSONException e) {
Toast.makeText(getApplicationContext(),
R.string.jsonexception, Toast.LENGTH_SHORT).show();
}
[21:11] <MiningMarsh> Triclops256: you know what would suck indescriable dick?
[21:11] <Triclops256> MiningMarsh: what?
[21:11] <MiningMarsh> *bable
[21:12] <MiningMarsh> living at a boarding school
[21:12] <Triclops256> Yeah it would
[21:13] <MiningMarsh> I have a feeling I would end up with a complex against authority
[21:13] <MiningMarsh> because I already hate authority (they tend to be dicks)
[21:13] <MiningMarsh> *hate a lot of authority
[21:13] <MiningMarsh> not all of it of course
[21:14] <Triclops256> OBEY MY AUTHORITAH
[21:14] <MiningMarsh> oh god
[21:14] <MiningMarsh> a cartmen led boarding school
[21:14] <MiningMarsh> that image
[21:14] <MiningMarsh> Triclops256: that image is glorious
[21:14] <Triclops256> cartman*
[21:14] <Triclops256> and, xD
[21:14] <Triclops256> yes it is
AHA
Gosh darn it
I have been brutally picked on my first day
:P Screw you
sorry but that is quite funny, almost as bad as my first day.