class Solution {
public boolean areNumbersAscending(String s) {
String[] arr = s.split(" ");
int pre = 0;
for(String s1 : arr){
try{
int curr = Integer.parseInt(s1);
if(curr > pre){
pre = curr;
}else{
return false;
}
}catch(Exception e){
}
}
return true;
}
}