Java

Javaコード下記
public static String encode(String value) {
String htmltext = “”;
if (value != null ...

Java

コード下記:
import java.util.Observable;
public class SubjectObservable extends Observable{
public void change ...

Java

コード下記:
public class FinalCheck {
public static void main(String[] args){
Booksell novels = new Booksell(t ...

Java

コード下記
public class GetPriAtt {
public static void main(String args[]){
Kyu t = new Kyu();
Class temp ...

Java

方法1
public static long custFilecopy(File f1,File f2) throws Exception{
long time=new Date().getTime();
in ...

Java

コードメモ:
import java.io.File;
import java.util.ArrayList;
public class FileSysCheck {
private static Ar ...

Java

javaコード

static public void createFolder(String filepath) {
if (filepath.lastIndexOf(File.separator)>-1) ...

Java

Javaコード:

import java.io.IOException;
import java.io.StringWriter;

import org.apache.commons.lang.Stri ...

Java

Javaコード下記
public class OpenIdServiceAction extends BaseAction {
private ParameterList requestParameters;

Java

Javaコード:
private String getDomainName(String url){
if(url.startsWith(“{
url=url.substring(7);
} ...

Java

1.Filterの設定
@WebFilter(filterName=”authority”
, urlPatterns={“/*”}
, initParams={ ...

Java

1.web.xmlの設定
<listener>
<listener-class>com.startnews24.store.common.SessionListenerStartnews24&l ...

Java

1.Stringからintへ変換
①int i = Integer.parseInt();
i = Integer.parseInt(,);
②int i = Integer.valueOf(my_str).i ...

Java

1.List<V>をMap<K,V>へ変換
List<Item> list;
Map<Key,Item> map = new HashMap<Key,Item> ...

Java

Javaコード:
import java.io.IOException;
import java.io.StringWriter;

import com.fasterxml.jackson.core.Jso ...

Java

サンプルコード

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE validators PUBLIC ...

Java

1.Fileupload.java
public class Fileupload extends ActionSupport {
private File upload;
private String upl ...

Java

サンプルコード:
private static String getIpAddr(HttpServletRequest request) {
String ip = request.getHeader(“X ...