Advertisement
Guest User

Untitled

a guest
May 30th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. package prax6Ott;
  2.  
  3. public class EksamTest {
  4. public static int maxWidth;
  5. public int maxWidth(){
  6.  
  7. Node tere = v.firstChild;
  8. while(tere!=null){
  9. int count = 0;
  10. if(tere.firstChild!=null){
  11. Node lapsed = tere.firstChild;
  12. count++;
  13. while(lapsed.nextSibling!=null){
  14. count++
  15. lapsed = lapsed.nextSibling;
  16. }
  17. return maxWidth;
  18. }
  19. if(count>maxWidth){
  20. maxWidth = count;
  21. }
  22. tere = tere.next;
  23. }
  24. return maxWidth;
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement