text stringlengths 10 2.72M |
|---|
package com.example.mapper;
public class TodoListMapper {
private final String totalCnt = "select id from todoList2";
private final String selectList = "select id,text,checked,color,moment,image from todoList2 where useYn='Y'";
private final String insert = "insert into todoList2 (id,text,color,image) values (?,?,... |
package com.itheima03;
public class StudentTest03 {
public static void main(String[] args) {
Student s1=new Student();
s1.name="林青霞";
s1.age=30;
System.out.println(s1.name+","+s1.age);
Student s2=s1;
s2.name="张曼玉";
s2.age=28;
System.out.println(s1.nam... |
package com.proyecto1.william.proyecto1.GoogleMaps;
import com.proyecto1.william.proyecto1.Entidad.Rutas;
import java.util.HashMap;
import java.util.List;
/**
* Created by Usuario on 17/02/2018.
*/
public interface Parser {
List<Rutas> parse() throws RouteExcepcion;
}
|
package propios;
public class HerenciaPadre extends HerenciaAbuelo{
private String casa;
private int CuentaCorriente;
private String vehiculo;
private String nombre;
public HerenciaPadre(String nom, int cuenta, String vehi, String casa){
super(nom, cuenta, vehi, casa);
this.casa=casa;
CuentaCorriente=cuen... |
public class mainRunner {
public static void main(String[] args) {
Acolyte player1 = new Acolyte();
Dreg player2 = new Dreg();
Enemy test = new Dreg();
player1.printHealth();
test.attack();
double attackDamage = test.damageNum();
player1.takeDamage(attackDamage);
player1.printHealth();
System... |
package ru.dm_ushakov.mycalculator.lang.func;
import java.math.BigDecimal;
import ru.dm_ushakov.mycalculator.lang.OperationContext;
public class NotFunc extends AbstractFunction {
@Override
public BigDecimal evalute(BigDecimal[] args, OperationContext context) {
if(args.length!=1)throw new IllegalArgumentExcepti... |
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.examples.resources.client.model;
import java.util.HashMap;
public class ModelItem extends HashMap<String, Double> {
privat... |
/**
* @Author: Joakim Olsson <lomo133>
* @Date: 2018-11-04T23:36:56+01:00
* @Last modified by: lomo133
* @Last modified time: 2018-11-04T23:37:14+01:00
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
... |
package io.github.cottonmc.libcd.impl;
import com.google.gson.JsonObject;
import java.util.Map;
import java.util.function.BiConsumer;
import net.minecraft.class_2960;
import net.minecraft.class_3222;
public interface CustomRewardsUtils {
Map<class_2960, JsonObject> getAllSettings();
void setAllSettings(Map<c... |
package pkgmain;
import java.io.InputStream;
import java.util.Properties;
import java.io.IOException;
import pkgb.B;
import pkgc.C;
public class Main {
public static void main(String[] args) throws IOException {
Main mymain = new Main();
B myb = new B();
C myc = myb.getMy... |
package ChessGame;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseListener;
import java.awt.event.*;
import javax.swing.*;
/**
* ChessGame class extends JFrame, impements Runnable, MouseListener, MouseMotionListener.
* Design the layout of the chess board panel.
*
* @author briannabrumfield,... |
package nbi.adapter;
import java.util.ArrayList;
import java.util.List;
/**
* @author robert.lee
* @version $Revision: 1.0 $
*/
public class ServerAdapter {
protected boolean sFtp;
protected String ip;
protected String port;
protected String userName;
protected String passwd;
priv... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.xag.xtra.trial;
import javax.annotation.Resource;
/**
*
* @author agunga
*/
@Resource(name = "myEventReso... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package shop;
/**
*
* @author Avinash Singh
*/
public class PaymentGateway extends javax.swing.JFrame {
/**
* Creates new... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Cliente;
import Logica.main;
import datos.Carta;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Lo... |
package webuters.com.geet_uttarakhand20aprilpro.activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;... |
package week7.classwork7;
public class Barrier {
private final int maxThreadCount;
private int currentThreadCount;
public Barrier(int maxThreadCount) {
this.maxThreadCount = maxThreadCount;
}
public void await() throws InterruptedException {
synchronized (this) {
curre... |
package com.company;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.concurrent.Semaphore;
public class F2 extends JFrame {
JLabel label;
JButton[][] buttons;
int size;
F1 firstFrame;
Han... |
package com.fhsoft.product.dao;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
import org.springframework.stereotype.Repository;
import com.fhsoft.base.dao.BaseDao;
/**
* @ClassName:com.fhsoft.product.dao.Pr... |
/**
* Created with IntelliJ IDEA.
* User: dexctor
* Date: 12-12-24
* Time: 下午9:32
* To change this template use File | Settings | File Templates.
*/
public class MyDepthFirstPaths {
private MyGraph G;
private final int s;
private boolean marked[];
private int edgeTo[];
private int count;
p... |
package com.redhat.service.bridge.manager;
public class TestConstants {
public static final String DEFAULT_BRIDGE_ID = "myId";
public static final String DEFAULT_CUSTOMER_ID = "jrota";
public static final String DEFAULT_BRIDGE_NAME = "myBridge";
public static final String DEFAULT_PROCESSOR_NAME = "pro... |
package bink.you.fcmcheck.utils;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.voll... |
package com.sinodynamic.hkgta.dto.account;
import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.ToStringBuilder;
public class DDIDto implements Serializable {
private String bankId;
private String bankCode;
private BigDecimal amount;
private String status;
private Lon... |
import WildMagic.LibFoundation.Mathematics.Vector3f;
import gov.nih.mipav.model.file.*;
import gov.nih.mipav.model.structures.*;
import gov.nih.mipav.plugins.*; // needed to load PlugInAlgorithm / PlugInView / PlugInFile interface
import gov.nih.mipav.view.*;
import java.awt.*;
import java.awt.event.ActionEvent;
im... |
package com.in28mins.jdbctojpademo.jpa;
import static org.junit.Assert.fail;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import org.junit.Test;
import org.junit.internal.runners.statements.Fail;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFacto... |
package com.notthemostcommon.creditcardpayoff.User;
import org.springframework.security.core.userdetails.User;
public class TestUserBuilder {
public static AppUser buildUser(){
AppUser user = new UserBuilder()
.withId(1L)
.withFirstName("TestFN")
.withLast... |
/*
1.a.- Realiza una clase, de nombre Examen, para guardar información sobre los exámenes
* de un centro educativo. La información que se guarda de un examen es: el nombre de la asignatura,
* el aula, la fecha y la hora. Para guardar la fecha y la hora hay que realizar dos clases,
* Fecha y Hora. La clase Fec... |
import java.text.DecimalFormat;
public class Clock {
private int hour =0;
private int minute= 0;
final int MAX_HOUR = 23;
final int MAX_MIN = 59;
public void displayTime(){
DecimalFormat decimalFormat = new DecimalFormat("00");
System.out.println(decimalFormat.format(this.hour... |
package com.company;
import jdk.nashorn.internal.scripts.JD;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
/**
* Created by marco sun on 2017/11/21.
* 如果多个操作,每个操作是用自己单独的连接,则无法保证事务,所以一个事务中的多个操作使用一个连接
*/
public class TranscationTest {
//1给2汇... |
package ru.steagle.protocol.request;
import android.content.Context;
import org.xmlpull.v1.XmlSerializer;
import java.io.IOException;
/**
* Created by bmw on 16.02.14.
*/
public class ChangeNotifyFlagCommand extends AccountCommand {
public static final String PHONE = "deny_avphone";
public static final St... |
package pl.almestinio.countdowndays.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
i... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... |
package jdbcnormal_properties;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Created by robin on 2017/8/9.
*/
public class JDBCDemo {
private static String url="jdbc:mysql://localhost:3306/springinaction";
public static void... |
package database;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
import packets.data.Organisation;
import packets.User;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.sql.*;
import java.time.LocalDate;
impor... |
package org.didierdominguez.view.transaction;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXTextField;
import com.jfoenix.validation.RequiredFieldValidator;
import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.control.Spinner;
import javafx.scene.layout.GridPane... |
@RequestMapping(path = "/registrousuario/{op},{n1},{n2}", method = RequestMethod.GET)
public ModelAndView registroUsuario(@PathVariable String op, @PathVariable Float n1, @PathVariable Float n2) {
ModelMap modelo2 = new ModelMap();
Float resultado;
modelo2.addAttribute("op", op);
modelo2.addAttribute("n1",... |
//package java.lang;
import java.util.*;
abstract class GeometricObject {
public abstract double findArea();
public abstract double findPerimeter();
}
class Circle extends GeometricObject {
private double r;
public Circle(double r){
this.r = r;
}
public double getR(){
re... |
package javasession;
// Input 2 values and print square of largest value and cube of smallest value
import java.util.Scanner;
public class Demo2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s=new Scanner(System.in);
int a,b;
System.out.println("Enter two values");
a=... |
package com.base.widget;
/**
* @file XListView.java
* @package me.maxwin.view
* @create Mar 18, 2012 6:28:41 PM
* @author Maxwin
* @description An ListView support (a) Pull down to refresh, (b) Pull up to load more.
* Implement IXListViewListener, and see stopRefresh() / stopLoadMore().
*/
import ja... |
package com.wglxy.example.dash1;
public class Constants {
public static final String SERVER_ADDRESS = "http://10.0.3.2/";
}
|
package pojo.DAO;
import org.hibernate.Session;
import org.hibernate.query.Query;
import tool.BeanFactory;
import java.util.Iterator;
/**
* Created by GR on 2017/3/1.
*/
public class CodeDAO {
/**
* 根据学生id,项目id获取到代码总行数
* @param studentId
* @return
*/
public Integer getCodeSumByStudentI... |
package com.wangcheng.base;
/**
* description:
*
* @author WangCheng
* create in 2020-06-21 16:21
*/
public class EnumTest {
public static void main(String[] args) {
System.out.println(Status.START.getKey());
System.out.println(Status.STOP);
}
}
/**
* 枚举:状态
*
* @author WangCheng
*/
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author mati
*/
public class Ej9 {
public static void main (String args[]) {
int suma, suma2, suma3;
fl... |
package com.git.cloud.request.service;
import com.git.cloud.common.exception.BizException;
import com.git.cloud.common.exception.RollbackableBizException;
import com.git.cloud.common.support.Pagination;
import com.git.cloud.common.support.PaginationParam;
import com.git.cloud.request.model.vo.BmSrRrinfoVo;
impo... |
package org.diosoft.service;
import org.diosoft.datastore.DataStore;
import org.diosoft.model.Event;
import org.diosoft.model.Person;
import java.rmi.RemoteException;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.UUID;
public class CalendarServiceImpl implemen... |
package ch.mitti.testing;
public class extend extends abstaction {
public void getHelp(){
System.out.println("Help!");
}
public static void main(String[] args){
extend extend = new extend();
extend.getHelp();
}
}
|
package saboteur.model.Card;
import java.io.Serializable;
public abstract class Card implements Cloneable, Serializable{
private static final long serialVersionUID = 4483534282280465205L;
//To load config
protected int id;
protected String frontImage;
protected String backImage;
public void setId(... |
package com.classassignments.corejava;
/**
* DAY: 2 #2. Write a method which accepts int as parameter, and returns sum of
* all individual digits For eg. 853 output should be 16 i..e 3+5+8
*
* @author M1035775 Kotra Thirumala
*
*/
public class SumOfDigits {
int digit, sum = 0; // Class variables
// Addition... |
package uk.gov.justice.digital.hmpps.keyworker.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hiber... |
package com.noturaun.posapp.repository;
import com.noturaun.posapp.entity.Outlet;
public interface OutletRepository {
Outlet[] getAll();
Outlet get(Integer outletId);
void add(Outlet outlet);
void update(Integer outletId, Outlet changes);
boolean delete(Integer outletId);
}
|
package coyamo.treeview;
import java.util.ArrayList;
import java.util.List;
public class TreeNode {
List<TreeNode> children = new ArrayList<>();
private Object data;
private int depth;
private int type;
private boolean expand, hasChild = true;
private TreeNode parent;
public TreeNode(Obje... |
package com.gxtc.huchuan.data;
import com.gxtc.commlibrary.data.BaseSource;
import com.gxtc.huchuan.bean.WxResponse;
import com.gxtc.huchuan.http.ApiCallBack;
import java.util.HashMap;
/**
* Created by Steven on 17/3/24.
*/
public interface WxSource extends BaseSource {
void login(HashMap<String,String> map,... |
package kr.or.ddit.vo;
public class PortFolioVO {
private String portfolio_no;
private String mem_id;
private String portfolio_categories;
private String portfolio_tags;
private String portfolio_technologies;
private String portfolio_name;
private String portfolio_regdate;
private String portfolio_design;
pr... |
package controlador;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
im... |
package cn.wulongkuan.travel.service.impl;
import cn.wulongkuan.travel.dao.impl.UserDaoImpl;
import cn.wulongkuan.travel.domain.User;
import cn.wulongkuan.travel.service.UserService;
/**
* @Author: wulongkuan
* @Date: 2019/3/30 22:13
*/
public class UserServiceImpl implements UserService {
@Override
public... |
package com.swjt.xingzishop.Service.impl;
import com.swjt.xingzishop.Bean.XzRole;
import com.swjt.xingzishop.Mapper.XzRoleMapper;
import com.swjt.xingzishop.Service.RoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class RoleServiceImpl implements RoleServi... |
package de.amr.games.pacman.lib;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Stream;
/**
* The move directions inside the world.
*
* @author Armin Reichert
*/
public enum Direction {
LEFT(-1, 0), RIGHT(1, 0), UP(0, -1), DOWN(0, 1);
private static fina... |
package com.amdocs.training.model;
public class Feedback {
private Integer f_id;
private Integer user_id;
private String name;
private String email;
private String feedback;
public Feedback() {
System.out.println("Feedback Created!");
}
public Feedback(Integer f_id, Integer user_id, String name, String ... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webadmin.credentials;
import java.util.Set;
import pl.edu.icm.unity.exceptions.IllegalCredentialException;
import pl.edu.icm.unity.server.utils.UnityMessageSource;
i... |
package com.database.mysql;
import java.util.Date;
public class AppCommit {
public int AppID;
public String CommitID;
public String DeveloperName;
public java.sql.Timestamp CommitDate;
public AppCommit() {
}
public AppCommit(int AppID, String CommitID) {
this.AppID = AppID;
this.CommitID = CommitID;
}
... |
package com.app.autokept;
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
public cl... |
package com.example.mvvmnotesapp;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "note_table")
public class NoteEntity {
/** Data members - Room automatically generates columns for these fields */
@PrimaryKey(autoGenerate = true)
private... |
package com.bofsoft.laio.customerservice.Activity.Setting;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import com.alibaba.fastjson.JSON;
import com.bofsoft.laio.common.CommandCodeTS;
import com.bo... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
public class Pin {
private boolean value=false;
public boolean get(){
return value;
}
public void set(boolean a){
value=a;
}
}
|
/**
* CRON表达式
*/
package xyz.noark.core.cron; |
package com.yc.education.application;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.config.IniSecurityManagerFactory... |
package registraclinic.diagnosticocineticofuncional;
import registraclinic.examescomplementares.*;
import registraclinic.avaliacaopostural.*;
import registraclinic.atendimento.*;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persisten... |
package com.zl.config;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
... |
package com.gs.tablasco.spark;
import com.gs.tablasco.verify.SummaryResultTable;
import org.apache.spark.api.java.function.Function2;
public class SummaryResultTableReducer implements Function2<SummaryResultTable, SummaryResultTable, SummaryResultTable>
{
@Override
public SummaryResultTable call(SummaryResult... |
// Copyright 2019 The Cloud Robotics Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
package fr.unice.polytech.isa.polyevent.comptable.bean;
import fr.unice.polytech.isa.polyevent.entities.DemandeEnvoieFacture;
import javax.ejb.Local;
@Local
public interface WebServiceComptabilite {
void DemanderFactureServeurComptabilite(DemandeEnvoieFacture demandeEnvoieFacture);
}
|
package PACKAGE_NAME;
/**
* Created by Markus on 18.08.2017.
*/
public class MyStageGenerator {
}
|
package com.codecool;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class PersistentStoreTest extends PersistentStore {
File testFile;
CDProduct cd;
BookProduct book;
List<Pro... |
package com.example.memorable_places;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SearchRecentSuggestionsProvider;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view... |
package ru.avokin.filediff;
/**
* User: Andrey Vokin
* Date: 30.09.2010
*/
public class CodeBlock {
private final int startLine;
private final int endLine;
public CodeBlock(int startLine, int endLine) {
this.startLine = startLine;
this.endLine = endLine;
}
public int getStart... |
package com.arpit.equityposition.services;
import com.arpit.equityposition.model.Position;
import com.arpit.equityposition.model.Transaction;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
* Service Interface for Position Operations.
* @author : Arpit
* @version 1.0
* @since : ... |
package model;
/**
* Created by Nhozip on 6/14/2016.
*/
public class ItemRSS {
private String _title;
private String _link;
private String _pubdate;
private String _img;
public ItemRSS(String _title, String _link, String _pubdate, String _img) {
this._title = _title;
this._link ... |
package org.juxtasoftware.dao.impl;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.juxtasoftware.dao.WorkspaceDao;
import org.juxtasoftware.model.Workspace;
import org.springframework.dao.support.DataAccessUtils;
import org.springframework.jdbc.core.RowMapper;
import org.sp... |
package com.example.secret.fruit2.Adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android... |
package com.wuyou.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuyou.dao.StudentMapper;
import com.wuyou.entity.Student;
import com.wuyou.service.IStudentService;
import com.wuyou.vo.StudentClassVO;
import org.springframework.beans.factory.annotation.Autowired;
import or... |
package com.meehoo.biz.core.basic.service.bos;
import com.meehoo.biz.common.util.BaseUtil;
import com.meehoo.biz.common.util.StringUtil;
import com.meehoo.biz.core.basic.dao.bos.ISerialNumberDao;
import com.meehoo.biz.core.basic.domain.bos.SerialNumber;
import com.meehoo.biz.core.basic.service.BaseService;
import org.... |
/* 151m - Reverse words in a string
* Given a string, reverse the words (last appearing first in result)
*
* Took O(N) extra space by using Stack. Must solve in-place.
*/
import java.util.*;
public class Solution {
public String reverseWords(String str) {
str = str.trim();
if(str.length()<2) ... |
/**
* 字符串模板转化为对象
*/
package xyz.noark.core.converter; |
package com.andtinder.view;
import com.andtinder.R;
import com.andtinder.model.CardModel;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
public final class SimpleCardStackAda... |
package com.sl.system.common.context;
public class SystemContextKey {
public static final String GCM_API_KEY = "AIzaSyB5hKgeCqBLmnty3EVwvT9JMx7KqKb7TJ8";
public static final String JOIN_AUTH_EMAIL_HOST = "smtp.gmail.com";
public static final int JOIN_AUTH_EMAIL_PORT = 587;
public static final String JOIN_AUTH_... |
/*
MIT License
Copyright (c) 2016 Kent Randall
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... |
package com.zantong.mobilecttx.interf;
import com.zantong.mobilecttx.base.interf.IBaseView;
/**
* Created by zhengyingbing on 16/6/1.
*/
public interface ILoginView extends IBaseView{
String getPhoenum();
String getCaptcha();
}
|
package me.hjjang.strategy;
public class StrategySword implements Strategy{
public void runStrategy() {
System.out.println("챙! 챙챙! 챙챙챙!");
}
}
|
package com.hackerank.algorithm.warmup;
import java.util.Scanner;
public class TheloveletterMystery {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//no of test case
int T=in.nextInt();
//string array
String[] s=new... |
package com.icanit.app.ui;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget... |
package com.benchforum.service.constants;
public enum UserType {
}
|
/*
* int a = 10;
* a = ++a + a + --a - --a + a++;
*/
package Unary;
/**
*
* @author YNZ
*/
public class PreFix {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int a = 10;
a = ++a + a + --a - --a + a++;
// ... |
package cj.oshopping.user.apispec;
public class _BasePackageLocation {
}
|
package bupt.hpcn.onlinestandard.mapper;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repository
public interface LevelMapper {
List<JSONObject> getAll();
}
|
package model;
public class Messages {
//private ConcurrentHashMap<Integer,String> map = new ConcurrentHashMap<Integer, String>();
public Messages() {
}
public synchronized void setMessage(int toId, int fromId) {
}
public synchronized String getMessage(int id) {
return "";
}
public void addSer... |
package cn.hrbcu.com.servlet.adminServlet;
import cn.hrbcu.com.service.impl.AdminServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... |
package com.quickly.module.mvp.base;
import android.arch.lifecycle.Lifecycle;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android... |
package com.route.model;
import java.io.*;
import java.util.*;
public class TEST {
public static byte[] getPictureByteArray(String path) {
File file = new File(path);
FileInputStream fis = null;
try {
fis = new FileInputStream(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
ByteA... |
package Main.Graphics;
import Main.Entity.Mob.Mob;
import Main.Entity.Projectile.Projectile;
import Main.level.tile.Tile;
import java.util.Random;
public class Screen
{
public int width;
public int height;
public int[] pixels;
public final int MAP_SIZE = 64;
public final int MAP_SIZE_MASK = MAP_S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.