HashMap<ChannelProperty,String> properties = new HashMap<>();
properties.put(ChannelProperty.CHANNEL_FLAG_PERMANENT, "1"); //Make channel permanent
properties.put(ChannelProperty.CPID, "3"); //Make it a subchannel of channel 3
api.createChannel("New Channel", properties); //Create the channel with our properties :)
}
}