Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class twoDimensionKinematics {
- public static void twoDimensionKinematics(){
- Scanner in = new Scanner(System.in);
- String angleCheck = "null";
- while (!angleCheck.equals("1") && !angleCheck.equals("2")) {
- System.out.println("Does your problem have an angle(1 = yes, 2 = no)?");
- angleCheck = in.next();
- if (!angleCheck.equals("1") && !angleCheck.equals("2") ) {
- System.out.println("Please re-enter either 1 or 2");
- }
- }
- if(angleCheck.equals("1")){
- }
- else if(angleCheck.equals("2")){
- twoDimensionKinematicsVariables twoDKineNoAngle = new twoDimensionKinematicsVariables();
- twoDKineNoAngle.twoDimensionKinematicsVariables();
- }
- }
- public void xy_priority(){
- twoDKineNoAngle.getVelocityInitX();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement