Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package prax6Ott;
- public class EksamTest {
- public static int maxWidth;
- public int maxWidth(){
- Node tere = v.firstChild;
- while(tere!=null){
- int count = 0;
- if(tere.firstChild!=null){
- Node lapsed = tere.firstChild;
- count++;
- while(lapsed.nextSibling!=null){
- count++
- lapsed = lapsed.nextSibling;
- }
- return maxWidth;
- }
- if(count>maxWidth){
- maxWidth = count;
- }
- tere = tere.next;
- }
- return maxWidth;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement