Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mattroseb8wk2;
- public class Day09E {
- public static void main(String[] args) {
- String[] penBrands = {"Panda", "Bic", "HBW", "Pilot"
- ,"Faber Castell", "Uni pen", "Muji", "Sakura", "Staedler"};
- for (String bName : penBrands) {
- System.out.println(bName);
- }
- System.out.println("penBrands array have " + penBrands.length + " items");
- for (int i = penBrands.length - 1; i >= 0 ; i--) {
- // pag ganyan, mula dulo pabalik ang kuha ng items
- System.out.println(i + ": " + penBrands[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment