Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public class randomClass {
  2. 2
  3. 3 public String name;
  4. 4 private int x;
  5. 5 private boolean y;
  6. 6
  7. 7 public randomClass(String name){
  8. 8 this.name = name;
  9. 9 setAttributes(1,true, "test");
  10. 10 System.out.println(x + "," + y);
  11. 11 }
  12. ...
  13. 21
  14. 22 public int xMethod(){
  15. 23 return 1;
  16. 24 }
  17. 25
  18. 26 public void passMethod(){
  19. 27 testMethod(new Callable<Integer>() {
  20. 28 public Integer call(){
  21. 29 return xMethod();
  22. 30 }
  23. 31 });
  24. 32 }
  25. 33
  26. 34 public void testMethod(Callable<Integer> myFunc){
  27. 35
  28. 36 }
  29.  
  30. cannot find symbol
  31. symbol : class Callable
Add Comment
Please, Sign In to add comment