Advertisement
tree_

ouin

Feb 8th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         int[] numbers = {1, 2, 3};
  4.         int length = numbers[2];
  5.         char[] chars = new char[length];
  6.         chars[numbers.length - 1] = 'y';
  7.         System.out.println("Done!");
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement