Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int[] numbers = {1, 2, 3};
- int length = numbers[2];
- char[] chars = new char[length];
- chars[numbers.length - 1] = 'y';
- System.out.println("Done!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement