A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4751

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

asdasdasd - mcpaste

asdasdasd

Von humpelpump, 10 Jahre vorher, geschrieben in Java, aufgerufen 1'577 mal.
URL https://mcpaste.de/view/85b68b90 Einbetten
Paste herunterladen oder Rohtext anzeigen
  1. public ArrayList<String> getB_Tree(int i){
  2.         ArrayList<String> al =new ArrayList<String>();
  3.         ArrayList<String> as = new ArrayList<String>();
  4.         //System.out.println(this.nodeEntries.size()+" , "+ this.childs.size());
  5.         String n;
  6.         String s = "";
  7.         //System.out.println(this.nodeEntries.size());
  8.         if(i==0){
  9.                 n = "root";
  10.         }
  11.         else{
  12.                 n = "node"+i;
  13.         }
  14.         s += n+"[label=\"";
  15.         for(int j = 0; j < nodeEntries.size(); j++){
  16.                 s+="<f"+j*2+">*|<f"+((j*2)+1)+">"+nodeEntries.get(j).getKey()+"|";
  17.         }
  18.         s+="<f"+nodeEntries.size()*2+">*\"];";
  19.        
  20.         al.add(s);
  21.         int k = i+1;
  22.         if(this.isleaf()==false){
  23.                 as.add(n+":f"+0+"->node"+(k)+";");
  24.                 for(int j = 1; j < childs.size(); j++){
  25.                         k = k+childs.get(j-1).getNodeSize();
  26.                         as.add(n+":f"+j*2+"->node"+(k)+";");
  27.                 }
  28.                
  29.                 k= i+1;
  30.                 al.addAll(childs.get(0).getB_Tree(k));
  31.                 for(int j = 1; j < childs.size(); j++){
  32.                         k = k+childs.get(j-1).getNodeSize();
  33.                         al.addAll(this.getHigh(), childs.get(j).getB_Tree(k));
  34.                 }
  35.                 al.addAll(as);
  36.         }
  37.         return al;
  38.        
  39. }

Antwort auf "asdasdasd"

Hier kannst Du auf den Paste von oben antworten

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876