Gentoo Archives: gentoo-embedded

From: Christopher Friedt <chrisfriedt@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gcc-4.6 / bionic
Date: Sat, 14 May 2011 03:05:19
Message-Id: BANLkTimQdTTMpoU9E04rVy5QKVLAMg69YQ@mail.gmail.com
In Reply to: Re: [gentoo-embedded] gcc-4.6 / bionic by Christopher Friedt
Some (hopefully) highly anticipated updates:

root@localhost ~ # echo $SHELL
/bin/bash

root@localhost ~ # find /var/db/pkg -mindepth 2 -maxdepth 2
/var/db/pkg/dev-java/eclipse-ecj-3.5.2
/var/db/pkg/dev-java/gnu-classpath-0.98-r3
/var/db/pkg/dev-java/jamvm-1.5.4-r1
/var/db/pkg/app-shells/bash-4.2_p8
/var/db/pkg/dev-libs/libffi-3.0.10_rc8
/var/db/pkg/dev-libs/icu-4.6
/var/db/pkg/dev-libs/libxml2-2.7.8
/var/db/pkg/dev-libs/libxslt-1.1.26-r1
/var/db/pkg/app-editors/nano-2.3.0
/var/db/pkg/sys-libs/zlib-1.2.5-r2
/var/db/pkg/sys-libs/ncurses-5.9
/var/db/pkg/sys-libs/readline-6.2_p1
/var/db/pkg/sys-apps/busybox-1.18.3
/var/db/pkg/sys-apps/file-5.06

root@localhost ~ # javac Hello.java && echo success
success

root@localhost ~ # java Hello
Hello, Bionic world!

root@localhost ~ # java ResolverTest www.google.ca
www.google.ca/74.125.91.104

root@localhost ~ # javac HelloGenerics.java && echo success
success

root@localhost ~ # java HelloGenerics
Hello, Bionic world!


HelloGenerics.java
-----------------------------

import java.util.*;

public class HelloGenerics<T> {
	public ArrayList<T> words = new ArrayList<T>();

	public static void main(String[] arg) {
		HelloGenerics<String> hi = new HelloGenerics<String>();
		
		hi.words.add("Hello");
		hi.words.add(", ");
		hi.words.add("Bionic");
		hi.words.add(" ");
		hi.words.add("world");
		hi.words.add("!");
		
		for(String s: hi.words) {
			System.out.print(s);
		}
		System.out.println();
	}
}

Replies

Subject Author
Re: [gentoo-embedded] gcc-4.6 / bionic Mike Frysinger <vapier@g.o>