[Solved] Program is saying all my valid inputs are invalid (REGEX code Issue maybe?) [closed]

I think you need to add Pattern. import java.util.*; public class lab2q2 { public static void main(String[] args) { String RegularExp = “((Mr|Ms))?[A-Z][a-z]+([A-Z]([a-z]+\\.))?([A-Z](a-z)+)”; Pattern pattern = Pattern.compile(RegularExp); Scanner keyboard = new Scanner(System.in); for(int i = 0; i< 11; i++) { System.out.println(“Please enter a name: “); String inputString = keyboard.nextLine(); Matcher matcher = pattern.matcher(inputString ); if(!matcher.matches()) … Read more

[Solved] How to use Alignment API to generate a Alignment Format file?

First question: I guess that the “mentioned method” is the one in tutorial1. It is not the appropriate one since you have to write a program to output the alignment format and this is a command line interface tutorial. In this case, you’d better look at http://alignapi.gforge.inria.fr/tutorial/tutorial2/index.html Then, there are basically two ways to do: … Read more