2009-03-30から1日間の記事一覧

libharu:HPDFPage#curve_to3

#!/usr/bin/env ruby require "hpdf" pdf = HPDFDoc.new page = pdf.add_page page.move_to(100, 100) page.curve_to3(250, 250, 280, 150) page.stroke pdf.save_to_file(File.basename($0, ".rb") + ".pdf")

Commons Lang、BooleanUtils.toStringTrueFalse()

import org.apache.commons.lang.BooleanUtils; public class C2009033000 { public static void main(String[] args) { System.out.println(BooleanUtils.toStringTrueFalse(true)); System.out.println(BooleanUtils.toStringTrueFalse(false)); System.ou…

getNextToken()

字句解析内での呼び出し PARSER_BEGIN(Test) public class Test { public static void main(String args[]) throws ParseException { Test parser = new Test(System.in); parser.Input(); } } PARSER_END(Test) SKIP : { <SPACE: " " | "\t" | "\n" | "\r"> } TOKEN : { <A: "a"> { getNextToken(); }</a:></space:>…