package com.aruis.android.androidhomework1 import android.app.Activity import android.grap…
import java.security.MessageDigest int KB = 1024 int MB = 1024*KB File f = new File(args[0…
// String output = new Date().format('yyyy-MM-dd HH:mm:ss')
// 递归求n! factorialProperty = { n -> if (n == 0) return 1 n * factorialProperty(n - 1) /…
// before def fun1(a, b, c) { println("-----------------------") if (a > b || a > c)…
new URL("http://www.oschina.net").openConnection().content.text.eachMatch( /href="(http.+?…
class UrlMappings { //grails框架不处理以下请求,也就是不经过grails的Controller,由web服务器处理 static excludes = …
def list1 = [1, 2, 3] def list2 = [4, 5, 6] def result = true list1.eachWithIndex { n, i -…
//---------------------------------------------------------------------------------- print…
String token = "QDG6eK"; String timeStamp = "1409659589"; String nonce = "263014780"; Stri…
import groovy.util.logging.* import java.util.logging.Level @Log("log2") class Car { Car()…
dataSource { jndiName = "java:comp/env/jdbc/lugua" //或 jndiName = "jdbc/lugua" 视你的jee容器jnd…