I'm new to Java and i don't have much experience programming. I've been working with this code for a while now, and I'm not really sure how to make it work.
public class Bases {
public static void main(String[] args) {
 String base = args[0];
 char valid = args[0].charAt(0);
 char[] newvalid = { 'A', 'G', 'C', 'T'};
 if (valid == newvalid)
 return valid;
 else
 System.out.println("Not a valid base");
}}
So here are my questions: 1. Is it possible to mix char[] and char? 2. And can someone explain why you "cannot return a value from method whose result type is void"?
Any help would be appreciate.
 
    