My First Playground

node v4.9.1
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
var Formatter = require('auto-format'); var indentToken = " "; // The code to format var unformattedCode = ` public void test1() { System.out.println("Hello World"); } /** * Perform test 2 */ public void test2() { System.out.println("Hello World"); } `; var javaFormatter = Formatter.createJavaFormatter(indentToken); var formattedCode = javaFormatter.format(unformattedCode);
Loading…

1 comment

  • posted 6 months ago by duanzheng
    float valueW = $p1.getParsedValue(Float.class); float valueH = $p2.getParsedValue(Float.class); if( Math.round(valueW * 10) / 10f % 1 > 0){ _result.getList().add(createParamModelResult("【" + $m0.getName()+"】的宽度:"+$p1.getParsedValue(Float.class)+"不为整" , $m0)); } if( Math.round(valueH * 10) / 10f % 1 > 0){ _result.getList().add(createParamModelResult("【" + $m0.getName()+"】的高度:"+$p2.getParsedValue(Float.class)+"不为整", $m0)); }

sign in to comment