text stringlengths 10 2.72M |
|---|
package com.san.guiTextInLanguage;
import com.san.guiText.GuiText;
import com.san.language.Language;
import com.san.textTranslated.TextTranslated;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@IdClass(GuiTextInLanguagePk.class)
public class GuiTextInLanguage {
@Id
@ManyToOne
private Gu... |
package com.oaec.service;
import java.util.List;
import com.oaec.dao.StudentDao;
import com.oaec.model.Student;
public class StudentService {
public List getStudentList(int page,int row){
// page*row row
StudentDao sd = new StudentDao();
String sql = "select * from student order by sname limit "+(page*row)+... |
package styleomega.cb006456.styleomega;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.support.de... |
package sr.hakrinbank.intranet.api.model;
import org.hibernate.envers.Audited;
import javax.persistence.*;
import java.util.Date;
/**
* Created by clint on 4/26/17.
*/
@Entity
@Audited
public class PosMerchant {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String na... |
HashTable:
HashSet is a set.
HashMap is <Key, Value> pair.
String common problem:
Key method: It is similar to array problem. Using two pointer.
1. Removal
a). remove particular chars from a string.
b). remove all leading/trailing/duplicate empty spaces from a string.
Method: (two pointer)
Two blocks, Three ... |
package com.lti.test;
public class Test {
public String msg()
{
return "hi";
}
}
|
package de.cm.osm2po.snapp;
import java.util.Arrays;
import org.mapsforge.android.maps.overlay.ArrayWayOverlay;
import org.mapsforge.android.maps.overlay.OverlayWay;
import org.mapsforge.core.GeoPoint;
import android.graphics.Color;
import android.graphics.Paint;
import de.cm.osm2po.sd.routing.SdGeoUtils;
import de.... |
package Problem_4470;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N ... |
package org.reactome.web.nursa.client.details.tabs.dataset.widgets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.s... |
package nyc.c4q.android.ui;
public interface AuthenticationManager {
boolean validateLogin(String email, String password);
}
|
package com.mercadolibre.bootcampmelifrescos.service;
import com.mercadolibre.bootcampmelifrescos.dtos.response.WarehouseBatchResponse;
public interface WarehouseBatchService {
WarehouseBatchResponse getWarehouseBatchQuantityByProduct(Long productId) throws Exception;
}
|
package com.emmanuj.todoo.db;
/**
* Created by emmanuj on 11/12/15.
*/
public class DBConfig {
public static final String DB_NAME = "todoo.db";
public static final int DB_VERSION=1;
}
|
package garage;
public class Motorcycle extends Vehicle {
public Motorcycle(int w, int s, String c) {
//System.out.println("Motorcycle.");
super.vehicleWheels = w;
super.vehicleSpeed = s;
super.vehicleColour = c;
}
}
|
package com.memberComment.model;
import java.util.List;
public class MemberCommentService {
private MemberCommentDAO_interface dao;
public MemberCommentService() {
dao = new MemberCommentDAO();
}
public MemberCommentVO addMemberComment(MemberCommentVO memberCommentVO) {
dao.insert(memberCommentVO);
return... |
package com.example.e_learning;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.firestore.FirebaseFirestore;
public class AdminPa... |
package cn.tedu.reivew;
///本类用于单例饿汉式
public class Test1 {
public static void main(String[] args) {
Mysing s1 = Mysing.getmysing();
Mysing s2 = Mysing.getmysing();
System.out.println(s1==s2);
}
}
class Mysing{
private Mysing(){}
private static Mysing mysing=new Mysing();
publ... |
package br.com.gestor.database.modelo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
@Entity
public class Gerente extends Usuario{
}
|
package com.leetcode.oj.list;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;
import com.leetcode.oj.util.ListNode;
/**
* Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexi... |
package utils;
public class Parameters {
/**
* global parameters stands for the orders status
*/
public final static String BOOKING = "booking";
public final static String ACTIVE = "active";
public final static String FINISH = "finish";
public final static String CANCEL = "cancel";
/**
* The global setting... |
/*
* 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... |
package ch.ethz.geco.t4j.internal.json.custom;
/**
* Represents a logo custom field json object.
*/
public class LogoObject {
public String logo_small;
public String logo_medium;
public String logo_large;
public String original;
}
|
package CamelWebservicePOC.client;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import java.net.MalformedURLException;
import java.net.URL;
/**
* This class was generated by the JAX-WS ... |
package com.project.personaddress.domain.service;
import com.project.personaddress.domain.model.Address;
import com.project.personaddress.repositories.AddressRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframewo... |
import static org.junit.Assert.assertEquals;
import image.Image;
import image.Pixel;
import java.util.ArrayList;
import java.util.List;
import model.ImageUtils;
import model.PPM;
import org.junit.Test;
/**
* Test class for the ImageUtils class.
*/
public class ImageUtilsTest {
// tests readFile
@Test
public ... |
package com.qumla.service.impl;
import io.katharsis.errorhandling.ErrorData;
import io.katharsis.errorhandling.ErrorResponse;
import io.katharsis.errorhandling.mapper.ExceptionMapperProvider;
import io.katharsis.errorhandling.mapper.JsonApiExceptionMapper;
import java.util.ArrayList;
import java.util.List;
import or... |
package com.example.zad2.filter;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import... |
package bd.edu.httpdaffodilvarsity.jobtrack.Database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.text.SimpleDateFormat;
import java.util.Date;
... |
package gameData.enums;
/**
* Created by corentinl on 1/28/16.
*/
public enum VoiceState {
PROMPT_FOR_INSTRUCTIONS, INITIALIZATION, QUICK_GAME_STARTED, ADVANCED_GAME_STARTED
}
|
/**
* Copyright 2017 伊永飞
*
* 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 or agreed to ... |
package com.blue33sun.recipe.utils;
import com.blue33sun.recipe.MainApplication;
import com.blue33sun.recipe.R;
import com.blue33sun.recipe.http.callback.ErrorInfo;
/**
* ClassName:HttpUtils
* Description:Http相关字符串的定义
* Author:lanjing
* Date:2017/10/4 21:45
*/
public class HttpUtils {
public static final in... |
package com.icanit.app;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import com.unionpay.upomp.lthj.util.PluginHelper;
public class UpompPay{
public static final String CMD_PAY_PLUGIN = "cmd_pay_plugin";
//商户包名
public static final String MERCHANT_PACKAGE = "com.lthj.g... |
package br.com.posgraduacao.revendacarros.daos;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import br.com.posgraduacao.revendacarros.models.*;
@Repository
public class TelefoneDAO {
@PersistenceContex... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... |
package com.java1.demo1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@EnableAutoConfiguration
publi... |
package com.ipartek.formacion.nombreproyecto;
import static org.junit.Assert.*;
import org.junit.Test;
public class CajaRegistradoraTest {
@Test
public void test() {
CajaRegistradora caja = new CajaRegistradora();
caja.setPago(10f);
caja.setPrecio(9f);
int[] resul = caja.getaVueltas();
... |
package org.dajlab.mondialrelayapi.soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Classe Java pour ret_WSI2_CreationExpedition complex type.
*
* <p>
* Le f... |
package com.networks.ghosttears.adapters;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.auth.Firebase... |
package com.ats.communication_admin.fragment;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.LocalBroadcastManager;
import ... |
package br.com.silver.utils;
import java.util.ArrayList;
public interface IReaderCSV {
/**
* Function called after read file
* @param data
*/
public void lineReady(ArrayList<String> data);
}
|
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package Vistas;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
... |
package com.my_music.Acitity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;... |
package mf.fssq.mf_part_one.util;
import android.content.Context;
//import android.database.sqlite.SQLiteDatabase;
//import android.database.sqlite.SQLiteOpenHelper;
import net.sqlcipher.database.SQLiteDatabase;
import net.sqlcipher.database.SQLiteOpenHelper;
public class DiaryDatabaseHelper extends SQLiteOpenHelper... |
package net.coderodde.fun.btreemapv1;
public class BTreeMapTest {
}
|
package com.git.cloud.tenant.service;
import java.util.List;
import java.util.Map;
import com.git.cloud.common.exception.RollbackableBizException;
import com.git.cloud.request.model.vo.VirtualSupplyVo;
import com.git.cloud.tenant.model.po.QuotaPo;
import com.git.cloud.tenant.model.vo.AllQuotaCountVo;
import ... |
package db.dao;
import db.connection.DbConnection;
import db.essence.Role;
import db.essence.User;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class UserDao extends AbstractDao {
private static final String forAdd = "INSERT INTO us... |
package Tree;
public class Leaves {
private String color;
private int numberOfLeaves;
private LeafType leafType;
public Leaves(String color, int numberOfLeaves, LeafType leafType) {
this.color = color;
this.numberOfLeaves = numberOfLeaves;
this.leafType = leafType;
}
... |
package com.ex.musicdb.web;
import com.ex.musicdb.model.binding.AlbumAddBindingModel;
import com.ex.musicdb.model.binding.CommentAddBindingModel;
import com.ex.musicdb.model.servise.CommentServiceModel;
import com.ex.musicdb.model.view.ArticleViewModel;
import com.ex.musicdb.service.AlbumService;
import com.ex.musicdb... |
package com.breadTravel.util;
import org.json.JSONArray;
import org.json.JSONObject;
import java.sql.ResultSet;
public class WorksJson {
public JSONArray getPreviewJson(ResultSet resultSet) {
JSONArray jsonArray = new JSONArray();
try {
while (resultSet.next()) {
JSON... |
/**
* JPA domain objects.
*/
package com.broadcom.websocketsampleapp.domain;
|
package Lector15.Task15_2;
import Other.ReadFromConsole;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.util.LinkedList;
public class StartTask15_2 {
public void start() {
try {
... |
/*
* 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 dao;
import dto.UserDTO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java... |
package ch11;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class HashSetExam {
public static void main(String[]args) {
Object[] obj= {3,6,4,1,2,3,5,7,4,2,2,8};
Set set=new HashSet();
for(Object oo:obj) {
set.add(oo);
}
System.out.println(set);
... |
package shapeEx;
public class Mai {
public static void main(String[] args) {
Circle c1 = new Circle();
Square s1 = new Square();
Rectangle r = new Rectangle(2.8,2.5);
//s1=(Rectangle) r;
s1= new Square();
}
}
|
package studioproject.first.my.locationmessageapplication;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.telephony.gsm.SmsManager;
import android.util.Log;
public class MessageRecei... |
package Main;
import java.awt.Button;
import java.awt.Choice;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.ArrayList;
... |
public class circle extends twoDimensionalShape
{
private double radius;
public circle(double r)
{
radius = r;
}
public double getArea()
{
return (Math.PI * radius * radius);
}
@Override
public double getVolume() {
return 0;
}
}
|
package com.cinema.biz.action;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ci... |
package com.dokyme.alg4.sorting.priorityqueue;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by intellij IDEA.But customed by hand of Dokyme.
* 2.4.30
*
* @author dokym
* @date 2018/5/17-10:55
* Description:
*/
public class DynamicMedian {
private MinHeap<Integer> highHeap;
private MaxHeap<Integ... |
package Program_Examples;
public class convert_String_to_Long {
public static void main(String[] args)
{
String str="203456";
//Conversion using parseInt method
long num = Long.parseLong(str);
//Conversion using valueOf method
long num2 = Long.valueOf(str);
/... |
package com.atguigu.lgl;
//接口与类之间的多态性
/*interface Usb{
public abstract void satrtu();
public abstract void stopu();
}
interface BlueTooth{
public abstract void satrtb();
public abstract void stopb();
}
//打印机连接鼠标和蓝牙
class Printer implements BlueTooth {
// @Override
// public void satrtu() {
// System.out.prin... |
package xyz.javista.config.security;
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import xyz.javista.web.dto.UserDTO;
import java.util.Objects;
public class CustomOAuth2Token extends DefaultOAuth2AccessToken {
pr... |
package com.xixiwan.platform.sys.service.impl;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatis... |
package Hang.Java.Common.Helpers;
import org.junit.Test;
import static org.junit.Assert.*;
public class LogHelperTest {
@Test
public void testError() throws Exception {
}
@Test
public void testWarn() throws Exception {
}
@Test
public void testInfo() throws Exception {
}
} |
/**
* Created with IntelliJ IDEA.
* User: Boss
* Date: 05.10.13 uhui
* Time: 10:16
* To change this template use File | Settings | File Templates.
*/
public class Antonina {
}
|
package com.example.demo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.Optional;
@RepositoryRestResource(path = "foo")
public interface FooRepository ex... |
package com.beike.common.enums.trx;
/**
* @Title: CardTopupType.java
* @Package com.beike.common.enums.trx
* @Description: 千品卡充值来源
* @author wh.cheng@sinobogroup.com
* @date May 5, 2011 2:35:06 PM
* @version V1.0
*/
public enum CardTopupChannel {
WEB, // web 网页
WAP, // WAP
IVR;// 电话
}
|
package de.fhdortmund.swt2.pruefungsmeister.Model;
/**
* Created by jonas on 22.05.17.
*/
public enum Resource {
ENERGYDRINK("Energydrink"), FASTFOOD("Fastfood"), EXTRA_POINTS("Bonuspunkte"), KNOW_HOW("Lernstoff"),
TECHNOLOGY("Technik");
private final String description;
Resource(String description... |
package gmit;
import java.util.ArrayList;
import java.util.Map;
import java.util.Scanner;
public class TestClass {
private Dictionary dc = new Dictionary();
private Map<String, ArrayList<String>> dictionary = dc.parse("dictionary.csv");
public static void main(String[] args) {
// Instantiate TestClass
TestC... |
package net.birelian.poc.di.guice;
import com.google.inject.Guice;
import com.google.inject.Inject;
import net.birelian.poc.di.guice.config.GuiceConfigurationModule;
import net.birelian.poc.di.guice.model.Contact;
import net.birelian.poc.di.guice.service.ContactService;
import java.util.Collection;
import java.util.L... |
package script.groovy.runtime;
import java.lang.annotation.Annotation;
import java.util.Map;
import script.groovy.runtime.GroovyRuntime.MyGroovyClassLoader;
public interface ClassAnnotationListener {
public abstract Class<? extends Annotation> handleAnnotationClass(GroovyRuntime groovyRuntime);
public abstract v... |
package com.sherpa.sherpa.Activites;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.AdapterView;... |
/**
*
*/
package com.android.aid;
import android.content.Context;
import android.util.Log;
/**
* @author wangpeifeng
*
*/
public class StampPreferences extends MainSharedPref{
private static final int WEEKLY = 6;
private static final int DAILY = 0;
private static final int SYNCTIMER = D... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.api;
import java.util.List;
import pl.edu.icm.unity.confirmations.ConfirmationConfiguration;
import pl.edu.icm.unity.exceptions.EngineException;
/**
* This ... |
/**
* winchance Inc.
*/
package com.sshfortress.common.util;
import java.io.UnsupportedEncodingException;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* 天搜内部签名 签名(约定key的算法)
*
* @version $Id: SignUtils.java, v ... |
package com.utiitsl.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.utiitsl.entity.FinancialDetailsEntity;
/**
* @author APOORVA
*
*/
@Repository
public interface FinancialDetailsRepository extends JpaRepository<FinancialDetai... |
package com.lsm.springboot.service;
import java.util.List;
import java.util.Set;
/**
* 对集合的操作
* 集合里的元素是不可重复的
* set 的内部实现是一个 value永远为null的HashMap,实际就是通过计算hash的方式来快速排重的
*/
public interface IRedisSetService {
/**
* 向集合添加一个或多个成员
*/
Long sAdd(String key, String... values);
/**
* 移除集合中一个或多个... |
package ur.api_ur.lotto;
import ur.api_ur.URApiType;
/**
* Created by redjack on 15/11/17.
*/
public class URApiLotteryType extends URApiType {
public static URApiLotteryType LIST_LOTTERY = new URApiLotteryType(601, "/lottery/list_lottery");
public static URApiLotteryType REDEEM_LOTTERY = new URApiLotteryT... |
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* Interface to allow for easy saving of an instance
* <p>
* When saving all objects contained by implementing class
* must also implement this interface
*/
public interface Saveable ex... |
package com.gxtc.huchuan.ui.live.hotlist;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUiView;
import com.gxtc.commlibrary.data.BaseSource;
import com.gxtc.huchuan.bean.ChatInfosBean;
import com.gxtc.huchuan.bean.ClassHotBean;
import com.gxtc.huchuan.bean.ClassLike;
import com.gxtc.huchua... |
/*
* Created on 2004-05-20
*
*/
package com.esum.ebms.v2.packages.container;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPExc... |
package com.getkhaki.api.bff.persistence.models;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
@Entity
@Getter
@Setter
@Accessors(chain = true)
public class GoalDao extends EntityBaseDao {
String name;
Int... |
package com.example.words.aty;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
//import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
i... |
package com.sapl.retailerorderingmsdpharma.models;
/**
* Created by Sony on 13/02/2018.
*/
public class OrderDeliveryStatusModel {
String distributorId;
String OrderStatus;
String OrderDate;
String OrderID;
String Amount;
String cart_count;
String address;
String contact_no_land;
... |
package custom;
import javax.swing.JTextField;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Font;
public class TransparentTextField extends JTextField
{
private final int TF_WIDTH = 400;
private final int TF_HEIGHT = 27;
private final Color color = new Color(255, 255,... |
package com.javarush.test.level08.lesson08.task04;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/* Удалить всех людей, родившихся летом
Создать словарь (Map<String, Date>) и занести в него десять записей по принципу: «фамилия» - «дата рождения».
Удалить из... |
/**
* Package for junior.pack2.p5.ch6 Tree.
*
* @author Gureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 2017-06-19
*/
package ru.job4j.tree;
|
package org.sayesaman.database.dao;
import android.content.ContentValues;
import android.database.Cursor;
import android.util.Log;
import com.googlecode.androidannotations.annotations.App;
import com.googlecode.androidannotations.annotations.Bean;
import com.googlecode.androidannotations.annotations.EBean;
import o... |
int[][] minesweeper(boolean[][] matrix) {
int row = matrix.length;
int col = matrix[0].length;
int[][] mines = new int[row][];
for(int i = 0; i < row; i++)
{
mines[i] = new int[col];
for(int j = 0; j < col; j++)
{
for(int bab = i-1; bab < i+2; bab++)
{... |
package com.soft1841.map;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.TreeSet;
public class PokerDemo {
public static void main(String[] args) {
//创建一个 HashMap 的集合
HashMap<Integer, String> hashMap = new HashMap<>();
//创建一个 ArrayList 的集合
Arra... |
package referencetype.practice;
public class Example1 {
public static void main(String[] args) {
int[] scores = null;
scores = new int[] {90, 80, 100};
System.out.println(scores[0]);
}
}
|
/*
* 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 model.ORM;
import java.text.ParseException;
import java.util.Date;
import model.Category;
/**
*
* @author PimG... |
package pro.likada.dao;
import pro.likada.model.Truck;
import java.util.List;
/**
* Created by abuca on 06.03.17.
*/
public interface TruckDAO {
Truck findById(long id);
void save(Truck truck);
List<Truck> findAllTrucks(String searchString);
void deleteById(long id);
Long findAmountOfVehicl... |
package com.myvodafone.android.front.fixed;
import com.myvodafone.android.model.service.fixed.FxlProduct;
import java.util.List;
public class PlanListItem {
private String plan;
public PlanListItem() {
}
public PlanListItem(String plan) {
this.plan = plan;
}
public String getPlan(... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package poiati.bobby;
public class FacebookIdAlreadyExistsException extends RuntimeException {
public FacebookIdAlreadyExistsException(final Integer facebookId) {
super(facebookId.toString());
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DataAccess;
import Entity.Menu;
import Utility.SQLHelper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author TUNT
*/
public class Menu... |
package tridoo.sigma2;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Field;
class GameActivityTest {
private GameActivity game;
@BeforeEach
void init() {
game = new GameActivity();
Class<?> ... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package forms;
import java.util.Collection;
import javax.validation.Valid;
import org.hibernate.validator.constraints.URL;
import datatype.Url;
import domain.PeriodRecord;
public class PeriodRecordForm {
private int id;
private int version;
private String title;
private String description;
private... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.