Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. f=File.open("priceMap_current_new.txt")
  2.  
  3. f.each do |str|
  4. arrstr=str.split(";")
  5. if arrstr.length==1
  6. puts arrstr[0].inspect if arrstr[0]=="nextn"
  7. end
  8. end
  9.  
  10. String[] mystr={"number;zero","number;one","number;two","number;three","number;four"};
  11.  
  12. for(int i=0;i<mystr.length;i++){
  13. String[] numbers=split(mystr[i],";");
  14. if(numbers[0]=="number"){
  15. println("shoooooooooooooooooout");
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement