text stringlengths 10 2.72M |
|---|
package pkg8queen;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;
import static pkg8queen.Main.simulatedAnnealing;
public class Board extends javax.swing.JFrame {
private JLabel[][] cell = new JLabel[8][8];
private Queen[] insertedQeens = new Queen[8];
p... |
import java.util.Scanner;
public class solution {
public static String getSmallestAndLargest(String s, int k) {
String smallest = "";
String largest = "";
smallest = s.substring(0,k);
largest = s.substring(0,k);
// "Compare to" method doesn't turn just the equel case ... |
package com.kwik.repositories.client.impl;
import static br.com.six2six.fixturefactory.Fixture.from;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;
import org.jstryker.database.DBUnitHelper;
import org.junit.Before;
import org.junit... |
/*
* Copyright 2002-2017 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 com.spreadtrum.android.eng;
import android.app.Activity;
import android.os.Bundle;
import android.provider.Settings.System;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener;
import android.view.inputmethod.InputMethodMan... |
import java.io.*;
import java.net.*;
import java.util.*;
//Code modified from the Red-Blue Assignment
class MulticastServer {
private static void logIn(String b, InetAddress a)
{
String temp[] = b.split(":");
String userName = temp[1];
String password = temp[2];
byte[] buffer = new byte[256];
... |
public class HW2_4 {
public static void main(String[] args) {
int i;
int[] ent= new int[10];
for(i=0;i<50;i++) {
int num = (int)(Math.random()*101);
switch(num/10) {
case 10 :
case 9 : ent[9]++; break;
case 8 : ent[8]++; break;
case 7 : ent[7]++; break;
case 6 : ent... |
package com.scalefocus.java.repository.local;
import com.scalefocus.java.domain.local.Role;
import com.scalefocus.java.domain.local.RoleName;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
public interface RoleRepository extends JpaRepository<Role, Long> {
Optional<Role> fi... |
/*
* 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 dequeproject;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
/**
*
* @author nsalemu2019
*/
pu... |
package com.futs.resource;
import com.futs.model.Campeonato;
import com.futs.service.impl.CampeonatoServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
... |
package com.zxt.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author h
*
*/
public class GetMACAddress {
/**
* 直接获取网卡地址
* @return
*/
public static String getMACAddress() {
String address = "";
String os = System.getProperty("os.name");
if (o... |
package com.example.vmac.myrobot.service;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
public class StartService extends Service {
private IBinder iBinder;
public StartService() {
}
@Override
public void o... |
package com.lgbear.weixinplatform.message.service;
import org.dom4j.Document;
import org.dom4j.Element;
import org.springframework.stereotype.Service;
import com.lgbear.weixinplatform.base.domain.Pagination;
import com.lgbear.weixinplatform.message.dao.TextDao;
import com.lgbear.weixinplatform.message.domain.Passive;... |
package com.myvodafone.android.front.fixed;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.v... |
package com.dl7.library.user;
import com.dl7.library.BaseResponse;
import com.dl7.library.OnRequestListener;
import com.dl7.library.utils.ServiceHelper;
import com.google.gson.Gson;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import r... |
package mlxy.pickerchu;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import java.io.File;
import java.io.IOException;
import mlxy.utils.F;
/** Pika pika. */
public class PickerChu {
private Activity activi... |
package com.CDH.myapplication.ui.fragments;
import androidx.lifecycle.ViewModelProviders;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import and... |
package no.nav.vedtak.log.metrics;
public interface LivenessAware {
boolean isAlive();
}
|
import java.util.Scanner;
/**
* Created by Administrator on 2017/8/20.
*/
public class chapter5_6 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int[] arr = new int[5];
int sum = 0;
for(int i=0;i<arr.length;i++){
System.out.println("请输入第"... |
package serve.serveup.views.restaurant;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import a... |
package com.mindstatus.bean.vo;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
/**
* MsPropList entity.
*
* @author MyEclipse Persistence Tools
*/
public class MsPropList implements java.io.Serializable
{
private static final long serialVersionUID = 1675236065672623624L;
pr... |
package com.huawei.cost.mapper;
import com.huawei.cost.domain.Cost;
import com.huawei.base.utils.PageBean;
import java.util.List;
/**
* Created by dllo on 17/11/11.
*/
public interface CostMapper {
int save(Cost cost);
int startCost(Cost cost);
int deleteCost(int id);
Cost findSingle(int id);
... |
package com.gome.manager.dao;
import java.util.List;
import com.gome.manager.domain.Answer;
import com.gome.manager.domain.ObjectBean;
import com.gome.manager.domain.Question;
import com.gome.manager.domain.Replay;
import com.gome.manager.domain.Selecter;
/**
*
* 会议dao接口.
*
* <pre>
* 修改日期 修改人 修改原因
... |
package fr.univ_rennes1.istic.sit.groupe2.back_sit.amqp;
import com.fasterxml.jackson.databind.ObjectMapper;
import fr.univ_rennes1.istic.sit.groupe2.back_sit.dao.MissionDao;
import fr.univ_rennes1.istic.sit.groupe2.back_sit.dao.PositionDao;
import fr.univ_rennes1.istic.sit.groupe2.back_sit.models.Mission;
import fr.u... |
package com.sirma.itt.javacourse.chat.server.manager;
import java.net.Socket;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.log4j.Logger;
import com.sirma.itt.javacourse.chat.common.ChatUser;
import com.sirma.itt.javac... |
package com.github.iam20.device.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TempHumid {
double celsius;
double humid;
}
|
package com.test.base;
import com.test.SolutionA;
import com.test.SolutionB;
import junit.framework.TestCase;
public class Example extends TestCase
{
private Solution solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
public void testSolut... |
package ch.erp.management.mvp.contract;
import ch.erp.management.mvp.base.BaseModel;
import ch.erp.management.mvp.base.BasePresenter;
import ch.erp.management.mvp.base.BaseView;
/**
* 启动页-Contract
*/
public interface MStartUpContract {
/**
* 启动页-IView
*/
interface MStartUpIView extends BaseView ... |
package enumrated_datatype;
public class AnnotationDemo
{
@SuppressWarnings("unchecked")
public static void main(String[] args) {
Child c=new Child();
c.turn();
}
}
class Parent
{
public void get()
{
System.out.println("hello in Parent");
}
}
class Child extends Parent
{
@Override
public void... |
package com.liuzhenkun.cms.dao;
import com.liuzhenkun.cms.entity.ArticleVote;
public interface ArticleVoteDao extends BaseDao<ArticleVote>{
}
|
package com.w2a.listeners;
import java.io.IOException;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import org.testng.Reporter;
import com.relevantcodes.extentreports.LogStatus;
import com.w2a.base.TestBase;
import com.w2a.utilities.TestUtil;
public cl... |
/*
* 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.
*/
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
imp... |
package com.culturaloffers.maps.repositories;
import com.culturaloffers.maps.model.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public int... |
package com.prep.algorithm.astar;
import java.util.ArrayList;
import java.util.List;
public class Path {
private List<Node> waypoints = new ArrayList<Node>();
public Node getWaypoints(int index) {
return waypoints.get(index);
}
public int getX(int index){
return getWaypoints(index).getX();
... |
package Task1;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Denis Prokhorin on 12.03.2018.
*/
public class FigureTest {
Figure figure;
@Before
public void init(){
figure= new Figure();
}
@After
public void ... |
package tool.exception;
/**
* 自定义异常,在请求错误时发生,对应了HTTP 400 Bad Request错误
*/
public class BadRequestException extends Exception {
private static final long serialVersionUID = 1L;
/**
* 带参数的构造函数
* @param msg 错误信息
*/
public BadRequestException(String msg) {
super(msg);
}
/**
* 默认构造函数
*/
public BadReq... |
package com.atguigu.gmall.product.service.impl;
import com.atguigu.gmall.model.product.SpuImage;
import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.atguigu.gmall.product.mapper.SpuImageMapper;
import com.atguigu.gmall.product.mapper.SpuSaleAttrMapper;
import com.atguigu.gmall.product.service.SkuInfoService... |
/* */ package test.data;
/* */
/* */ import java.io.Serializable;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... |
package com.joalib.board.action;
import java.awt.event.ActionEvent;
import java.beans.PropertyChangeListener;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.sw... |
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import javax.sound.sampled.Clip;
/**
* LevelManager is the controller class that handles all level operations
*/
public class LevelManage... |
package org.crazyit.event;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
// 实现事件监听器接口
public class MainActivity extends Activity
implements View.OnClickListener
{... |
public class UrlData {
String urlProcessed;
Location location;
public String getUrlProcessed() {
return urlProcessed;
}
public void setUrlProcessed(String urlProcessed) {
this.urlProcessed = urlProcessed;
}
public Location getLocation() {
return location;
}
public void setLocation(Location ... |
public class MyBellmanFordSP {
private double[] disTo;
private DirectedEdge[] edgeTo;
private boolean[] onQ;
private Queue<Integer> queue;
private int cost;
private Iterable<DirectedEdge> cycle;
private EdgeWeightedDigraph G;
private int s;
public MyBellmanFordSP(EdgeWeightedDigraph ... |
package yinq.situation.dataModel;
/**
* Created by YinQ on 2018/11/30.
*/
public class SleepSituationDetModel extends SituationDetModel {
private int code;
private int status;
private int score;
public SleepSituationDetModel(){
}
public int getCode() {
return code;
}
pub... |
package com.worldchip.bbpawphonechat.activity;
import com.worldchip.bbpawphonechat.R;
import com.worldchip.bbpawphonechat.application.MyApplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.... |
package logica;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import bean.Partita;
import bean.Utente;
import dao.GiocoHDao;
import dao.UtenteHDao;
public abstract class UtenteManager... |
package tjava.base;
import java.util.Objects;
import java.util.function.Supplier;
public abstract class Result<T> {
public abstract boolean isSuccess();
public abstract T getContent();
public abstract T getOrElse(final T defaultValue);
public abstract T getOrElse(final Supplier<T> defaultValue);
public ab... |
package sg.edu.iss.ad.utility;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import sg.edu.iss.ad.model.*;
import sg.edu.iss.ad.repository.CandleHistoryRepository;
import sg.edu.iss.ad.reposito... |
package com.metoo.foundation.service.impl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.metoo.core.dao.IGenericDAO;
import com.metoo.foundation.doma... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cput.codez.angorora.eventstar.model;
/**
*
* @author allen
*/
public final class Address {
private String id;
private String hseNum;
private String street;
private String town;
private Str... |
package objetos.aeronaves.enemigos;
import movimiento.Posicion;
import movimiento.patrones.IdasVueltas;
import objetos.Energia;
import objetos.aeronaves.Enemigo;
import objetos.armas.CuartoArmas;
import org.jdom.*;
import vistas.FactoryVistas;
import ar.uba.fi.algo3.titiritero.ControladorJuego;
import ar.uba.fi.algo3.... |
package org.hibernate.bugs;
import javax.persistence.*;
@Entity
@Table(name = "vendor")
public class Vendor {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private int id;
@Column(name = "name")
private String name;
@ManyToOne
@JoinColumn(name = "address_... |
package exam.iz0_803;
public class Exam_076 {
}
/*
Given the code fragment:
String name = "Spot";
int age = 4;
String str = "My dog " + name + " is " + age;
System.out.println(str);
And:
StringBuilder sb = new StringBuilder();
Using StringBuulder, which code fragment is the best potion to build and print following s... |
package common.geo;
public class Location {
private Geocode geocode;
private PostalAddress addr;
public Geocode getGeocode() {
return geocode;
}
public void setGeocode(Geocode geocode) {
this.geocode = geocode;
}
public PostalAddress getAddr() {
return addr;
}
public void setAddr(PostalAddress addr)... |
package org.sky.app.action;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.sky.app.service.AppBaseCustomerService;
import org.sky.app.utils.AppConst;
import org.sky.base... |
package com.pmm.sdgc.model;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.pers... |
package alien4cloud.tosca;
import alien4cloud.component.ICSARRepositorySearchService;
import alien4cloud.component.repository.ICsarRepositry;
import alien4cloud.component.repository.exception.CSARVersionAlreadyExistsException;
import alien4cloud.model.components.CSARDependency;
import alien4cloud.model.components.Csar... |
package Problem_15645;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] arr = new int[3];
int[] tmp = new int[3];
int[] dp_x = new int[3]; // max
int[] dp_n = new int[3]; // min
for (int... |
package com.techm.daos.impl;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.tec... |
package patterns.structure.adaptor;
public class TFCardImpl implements TFCard
{
@Override
public String readTF()
{
return "read from tf card";
}
@Override
public int writeTF(String msg)
{
System.out.println("write into tf card" + msg);
return 1;
}
}
|
package com.jaiaxn.design.pattern.behavioral.chain.of.responsibility;
/**
* @author: wang.jiaxin
* @date: 2019年08月26日
* @description:
**/
public class ErrorLogger extends AbstractLogger {
public ErrorLogger(int level) {
this.level = level;
}
@Override
protected void write(String message) ... |
package factorypattern.noodle.simplefactory;
/**
* The shop sales beef noodle.
*
* @author Thomson Tang
*/
public class NoodleShop {
SimpleNoodleFactory noodleFactory; // now we give BeefNodeShop a reference to a SimpleNoodleFactory.
// BeefNoodleShop gets the factory passed to it in the constructor.
... |
package meetingrooms;
import java.util.Scanner;
public class Controller {
private Office office;
private Scanner scanner = new Scanner(System.in);
public void readOffice() {
office = new Office();
System.out.println("Hány darab tárgyalót szeretnél rögzíteni?");
int numberOfMeeten... |
package model.fighter;
import model.board.Content;
import model.element.Blood;
import model.fighter.level.EnemyLevel;
public class Enemy2 extends Enemy {
public Enemy2(int level) {
super(new EnemyLevel(level, 1, 1));
}
@Override
public Content contentLeft() {
return new Blood();
}
@Override
public void ... |
package edu.neu.ccs.cs5010;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* Created by xwenfei on 10/23/17.
*/
public class GenerateFile {
private static final String HEADER = "Node ID, Recommended nodes";... |
package com.metoo.module.app.domain;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.metoo.core.constant.Globals;
import com.metoo.core.domain.IdEntity;
/**
*
* <p>
* Titl... |
import org.jfree.chart.ChartPanel;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;
public class Graph extends Applicat... |
package netAnalysis;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Random;
import DataModel.NodeUnit;
import FactorGenerate.Generator;
import Simulation.... |
package Http;
import java.io.*;
import java.net.Socket;
public class RequestHandler {
private static final int BUFFER_SIZE = 4096;
public void handleRequest(Socket sock) {
OutputStream out = null;
int value;
try {
String request = RequestMethod.getRequest(sock);
System.out.println(request);
Str... |
package machinery.artisan.controllers;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.ListView;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.Text... |
import javafx.scene.input.DataFormat;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.... |
package haircutter.dataModels;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Getter;
import lombok.Setter;
@Entity
public class Reservation {
@Id
@Gener... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.TreeSet;
/* URL
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=491&sca=50&sf... |
package nh.automation.tools.serviceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import nh.automation.tools.dao.UserMapper;
import nh.automation.tools.entity.User;
@Service
public class UserServiceImp {
@Autowired
private UserMapper userMapper;... |
package leetCode.copy.Array;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* 295. 数据流的中位数
* 中位数是有序列表中间的数。如果列表长度是偶数,中位数则是中间两个数的平均值。
*
* 例如,
* [2,3,4] 的中位数是 3
* [2,3] 的中位数是 (2 + 3) / 2 = 2.5
*
* 设计一个支持以下两种操作的数据结构:
* void addNum(int num) - 从数据流中添加一个整数到数据结构中。
* double findMedian() - 返回目前所有元素的... |
package com.devpmts.dropaline.parts;
import java.awt.event.KeyEvent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;
im... |
package com.example.smartphonesensing2.localization.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
public class AP1 extends SQLiteOpenHelper {
// If you change the database schema, you must incr... |
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of ... |
package 原型模式.非cloneable方式;
/**
* 非Cloneable实现原型模式
*/
public class TestMain {
public static void main(String[] args) {
ConcretePrototype originObj = new ConcretePrototype();
originObj.setName("原始对象的名字");
originObj.showObjInfo();
ConcretePrototype cloneObj = originObj.clone();
... |
package ToolsforFileManagement;
public class SlashDelete {
public static void main(String arg[]){
excludeslash("2011/1/12");
}
public static String excludeslash(String in){
String[] tokens = in.split("/");
String yyyymmdd = tokens[0] + String.format("%02d",Integer.valueOf(tokens[1])) + String.format("%02d"... |
//accept two no ckack highest value and print them
import java.util.*;
class highest
{
public static void main(String args[])
{
Scanner v=new Scanner(System.in);
System.out.print("Enter first String::");
int a=v.nextInt();
System.out.print("Enter Second String::");
int b=v.nextInt();
if(a>b)
System.out.... |
package com.packt.backgroundservicedemo;
import android.app.IntentService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.annotation.Nullable;
import android.support.v4.content.LocalBroadcastManager;
i... |
package config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.io.IOException;
import java.util.P... |
package com.uchain;
import com.uchain.solidity.CallTransaction;
import com.uchain.solidity.SolcUtils;
import com.uchain.solidity.compiler.CompilationResult;
import com.uchain.solidity.compiler.SolidityCompiler;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.util.Arra... |
package slimeknights.tconstruct.library.potion;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.ResourceLocation;
public class TinkerPotion extends Potion {
private final boolean show;
public TinkerPotion(Resou... |
package com.yusys.category;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.yusys.category.PropertyTypeConfig;
public interface IPropertyTypeConfigService {
/**
* 查询所有
* @param req
* @param userid
* @return
*/
public List<Map<String, String>> queryA... |
package com.ccloud.oa.user.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccloud.oa.user.entity.Role;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 用户角色权限表 Mapper 接口
* </p>
*
* @author breeze
* @since 2020-08-19
*/
@Mapper
public interface RoleMapper extends BaseMapper<Ro... |
package ar.gob.gcaba.dao;
import java.util.Date;
import java.util.List;
public interface RegistroLUEDAO {
List<Integer> getListaRegistrosId(Long cuil);
Integer agregarDocumentoVinculado(Integer idRegistro, String numeroDocumento, Integer tipoDocumento,
String ruta, Date fechaVencimiento, String acronimo... |
package io.report.modules.bddp.entity;
import java.util.List;
public class SqliteEntity {
private List<String> columns;
private List<List<Object>> values;
public void setColumns(List<String> columns){
this.columns = columns;
}
public List<String> getColumns(){
return this.... |
package com.cakeworld.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Data;
@Entity
@Data
public class Pincode {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
public long id;
publi... |
package com.soa.soap;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for element.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="element">
* <restri... |
/* Ara - capture species and specimen data
*
* Copyright (C) 2009 INBio (Instituto Nacional de Biodiversidad)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... |
package com.ut.healthelink.model.custom;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import ... |
package ds.circularlinkedlist;
public class CircularLinkedList {
private Node first;
private Node last;
public CircularLinkedList() {
first = null;
last = null;
}
public void insertFirst(int data) {
Node newNode = new Node();
newNode.data = data;
newNode.ne... |
package com.loneless.second_task;
import com.loneless.second_task.entity.Sentence;
import com.loneless.second_task.entity.Text;
import com.loneless.second_task.entity.Word;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Text text=new Text();
Scanner reader=... |
package com.example.howmanydaysi.alarm;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.BitmapFactory;
import android.graphics.Co... |
package com.damianogiusti.cleanandroid.ui.home;
import com.damianogiusti.cleanandroid.mvp.View;
import com.damianogiusti.cleanandroid.viewmodel.ProvinceViewModel;
import java.util.List;
/**
* Created by Damiano Giusti on 03/05/17.
*/
public interface MainView extends View {
void showMessage(String message);
... |
package com.example.mmr.medic;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.w... |
package com.sapient.healthyreps.controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.sapient.healthyreps.dao.UserRegisterDAO;
import com.sapient.healthyreps.entity.U... |
package com.vicutu.cache;
import java.util.Iterator;
public interface CacheManager
{
Cache get(String name);
Iterator<String> keySet();
void remove(String name);
void removeAll();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.