text stringlengths 10 2.72M |
|---|
package com.pd.view;
import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
@Theme("valo")
@SpringUI(path = "")
public class Index extends UI {
/**
*
*/
private static final long serialVer... |
package com.gxtc.huchuan.ui.deal.leftMenu;
import com.gxtc.commlibrary.BasePresenter;
import com.gxtc.commlibrary.BaseUiView;
import com.gxtc.huchuan.bean.WxResponse;
/**
* Created by Steven on 17/3/24.
*/
public interface WxLoginContract {
interface View extends BaseUiView<WxLoginContract.Presenter>{
... |
package com.kg.wub.system;
public interface Tickable {
public boolean tick(byte[] buffer);
}
|
package kxg.searchaf.url.chunqiu;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import kxg.searchaf.url.Con... |
/*
* ### Copyright (C) 2008 Michael Fuchs ###
* ### All Rights Reserved. ###
*
* Author: Michael Fuchs
* E-Mail: michael.fuchs@unico-group.com
* URL: http://www.michael-a-fuchs.de
*/
package org.dbdoclet.tidbit.action;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.IOExce... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.types;
import pl.edu.icm.unity.exceptions.InternalException;
/**
* General purpose interface for objects which can have its state serialized into Json and then read... |
/*!
* Picto
* Copyright 2016 Mozq
*
* 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 ... |
import org.junit.Test;
public class TwitterTest {
@Test
public void testShouldPostAndGetLast10HotNewsFeeds(){
Twitter twitter = new Twitter();
twitter.postTweet(1, 79);
twitter.postTweet(1, 80);
twitter.postTweet(1, 81);
twitter.postTweet(1, 82);
twitter.postTwe... |
package com.shiyanlou.mybatis.mapper;
import com.shiyanlou.mybatis.model.User2;
import java.util.HashMap;
import java.util.List;
public interface User2Mapper {
public int insertUser2(User2 user) throws Exception;
public int updateUser2(User2 user) throws Exception;
public int deleteUser2(Integer id) thro... |
package algorithm._9;
import java.util.ArrayList;
import java.util.List;
public class Solution {
public static void main(String[] args) {
System.out.println(new Solution().isPalindrome(121));
}
public boolean isPalindrome(int x) {
if (x == 0) {
return true;
}
... |
package com.bnade.wow.repository;
import com.bnade.wow.entity.Realm;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* 魔兽服务器信息
* Created by liufeng0103@163.com on 2017/7/6.
*/
public interface RealmRepository extends JpaRepository<Realm, Integer> {
}
|
package FunctionalTests;
import org.junit.After;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.Ass... |
/*
* 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 ejercicio01;
import java.util.Scanner;
import java.util.StringTokenizer;
/**
*
* @author examen
*/
public class Usuario {... |
/**
* _28_ImplementsStrStr
*/
public class _28_ImplementsStrStr {
public int strStr(String haystack, String needle) {
return getIndexOf(haystack, needle);
}
public int getIndexOf(String str, String match) {
if (str == null || match == null || str.length() < 1 || match.length() < 1 || str... |
package com.wxt.designpattern.command.test01;
/*********************************
* @author weixiaotao1992@163.com
* @date 2018/12/1 13:53
* QQ:1021061446
*
*********************************/
public class Client {
/**
* 示意,负责创建命令对象,并设定它的接受者
*/
public void assemble(){
//创建接受者
Recei... |
package ALIXAR.U4_POO.T1.A2;
public class principal {
public static void main(String[] args) {
CuentaCorriente c1 = new CuentaCorriente("Adrian", "77977354");
CuentaCorriente c2 = new CuentaCorriente(100);
CuentaCorriente c3 = new CuentaCorriente(100, -50, "66688834");
c1.mostrar_... |
package com.example.intake;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
/** After loading a patient, this activity gives a physician 2 options:
* display all data for this patient, or recor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tot.dao.jdbc;
import tot.dao.AbstractDao;
import tot.dao.DaoFactory;
import tot.db.DBUtils;
import tot.util.StringUtils;
import tot.bean.*;
import tot.exception.ObjectNotFoundException;
import tot.exception.Data... |
package com.example.demo.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Calendar;
@Data
@NoArgsConstructor
public class Audited {
private String id;
private String created_by;
private Calendar created_date;
private String modified_by;
private Calendar modified_date;... |
package pcs.is.domain;
import java.util.ArrayList;
class PlanDeCurso {
private Curso curso;
private String programaEducativo;
private String periodo;
private String objetivoGeneral;
private ArrayList<Bibliografia> bibliografia;
private ArrayList<Planeacion> planeacion;
p... |
package com.contract.system.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.contract.system.model.Service;
public interface ServiceRepository extends JpaRepository<Service, Integer>{
Servic... |
package com.nfet.icare.service;
import java.util.List;
import com.nfet.icare.pojo.Fix;
import com.nfet.icare.pojo.Warranty;
import com.nfet.icare.pojo.WarrantyPkg;
public interface OrderService {
//获取用户报修列表
public List<Fix> fixList(String userNo);
//根据报修订单号获取报修详情
public Fix fixDetail(String fixId);
//获取用户延保列表
... |
/*
* Copyright 2002-2022 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 bag;
/**
* @author YoSaukit
* @date 2019/10/8 19:52
*/
public class No5_Palindromic {
private int lo,maxLen;
public static void main(String[] args) {
No5_Palindromic no5_palindromic = new No5_Palindromic();
System.out.println(no5_palindromic.longestPalindrome("babad"));
}
pub... |
package v12;
import java.util.Random;
import java.util.concurrent.Callable;
public class Evolver implements Callable<LevelStrategy[]> {
LevelStrategy[] originalPopulation, evolved_population;
int tsize, POPSIZE, evolved_POPSIZE, evolvedSystemSize;
StrategyCreator creator;
Random rd = new Random();
public Evo... |
package com.jit.consumer02;
import java.util.ArrayList;
import java.util.function.Consumer;
class Test {
public static void main(String[] args) {
ArrayList<Movie> l = new ArrayList<Movie>();
populate(l);
Consumer<Movie> c = m -> {
System.out.println("Movie Name:" + m.name);
System.out.println("Movie Hero... |
package edu.uag.iidis.scec.control;
import edu.uag.iidis.scec.vista.*;
import edu.uag.iidis.scec.modelo.*;
import edu.uag.iidis.scec.servicios.*;
import java.util.Collection;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.com... |
package com.ilids.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.ilids.dao.Book... |
package com.mc.library.widgets;
import android.content.Context;
import android.graphics.Camera;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
impo... |
package cs414.a5.bawitt.common;
public interface ElectronicPayment extends java.rmi.Remote{
boolean isAccountValid() throws java.rmi.RemoteException;;
boolean isDateValid() throws java.rmi.RemoteException;;
boolean isActNumValid() throws java.rmi.RemoteException;;
boolean isExpDateInFuture() throws java.rmi.R... |
package service;
import model.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface BookService {
Page<Book> findAll(Pageable pageable) ;
Book findById(Long id);
Book save(Book customer);
Book remove(Long id);
Page<Book> findAllByNa... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webui.common.i18n;
import pl.edu.icm.unity.server.utils.UnityMessageSource;
import pl.edu.icm.unity.types.I18nString;
import com.vaadin.ui.TextField;
/**
* Custom ... |
package sop.web.management;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... |
package com.example.android.inventory;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import and... |
package interfaces;
public interface AbstractRoom {
void create();
}
|
package com.infoworks.ml.domain.detectors;
import com.it.soul.lab.sql.entity.Entity;
import com.it.soul.lab.sql.entity.Ignore;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.HashMap;
import java.util.Map;
/**
* An immutable result returned by a Classifier describing what was recognized.
*/
p... |
package com.github.fly_spring.demo12.conditional;
/**
* Linux下要创建的Bean类
* @author william
*
*/
public class LinuxListService implements ListService{
@Override
public String showListCmd() {
return "ls";
}
}
|
package test.java.cardprefixlist;
import test.java.cardprefixlist.exceptions.ParsingException;
import test.java.cardprefixlist.exceptions.ProcessingException;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.function.BiConsumer;
import java.util.function.Supplier;... |
/*
* Copyright 2008-2018 shopxx.net. All rights reserved.
* Support: localhost
* License: localhost/license
* FileId: kdKWokUHSAjh4DtHC08l0kf6SDSjVoGV
*/
package net.bdsc.service.impl;
import java.util.List;
import javax.inject.Inject;
import org.apache.commons.lang.BooleanUtils;
import org.springframework.ster... |
package dao;
import entity.DepotDraw_insert;
import entity.DepotDraw_select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public class DepotDrawDao {
@Autowire... |
package info.gridworld.grid;
/**
* A <code>SparseGridNode</code> is a element of the linked list which used in a sparse array.
* @author Eduardo
*/
public class SparseGridNode
{
private Object occupant;
private int col;
private SparseGridNode next;//a Reference of next node
public SparseGridNode... |
package com.xinhua.pipline;
import com.xinhua.api.domain.refOrder.RefOrderRequest;
import com.xinhua.api.domain.refOrder.RefOrderResponse;
import com.xinhua.api.domain.xDCBBean.*;
import com.xinhua.xdcb.*;
import javax.xml.namespace.QName;
import javax.xml.ws.Holder;
import java.math.BigDecimal;
import java.net.URL... |
package com.staniul.teamspeak.modules.messengers;
import com.staniul.teamspeak.security.clientaccesscheck.ClientGroupAccess;
import com.staniul.teamspeak.commands.CommandResponse;
import com.staniul.teamspeak.commands.Teamspeak3Command;
import com.staniul.teamspeak.commands.validators.ValidateParams;
import com.staniu... |
package sg.edu.iss.ad.model;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name="CandlesWatchList")
p... |
/*
* Welcome to use the TableGo Tools.
*
* http://vipbooks.iteye.com
* http://blog.csdn.net/vipbooks
* http://www.cnblogs.com/vipbooks
*
* Author:bianj
* Email:edinsker@163.com
* Version:5.8.0
*/
package com.lenovohit.hwe.pay.model;
import java.math.BigDecimal;
import java.util.Date;
import javax.persist... |
/*
* 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 parcial2;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Leonardo
*/
public class Tester {
/**
... |
package com.arthur.leetcode;
import java.util.Stack;
/**
* @title: No1047
* @Author ArthurJi
* @Date: 2021/3/9 9:56
* @Version 1.0
*/
public class No1047 {
public static void main(String[] args) {
}
public String removeDuplicates(String S) {
char[] s = S.toCharArray();
int top = -1;... |
package StackCalculator;
import StackCalculator.Command.CommandFactory;
import StackCalculator.Command.Invert;
import StackCalculator.Command.Sum;
import StackCalculator.Exceptions.*;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.InvocationTargetExcepti... |
package net.minecraftforge.forgespi;
import cpw.mods.modlauncher.api.IEnvironment;
import cpw.mods.modlauncher.api.TypesafeMap;
import net.minecraftforge.api.distmarker.Dist;
import java.util.function.Supplier;
/**
* Global environment variables - allows discoverability with other systems without full forge
* depe... |
package ua.com.rd.pizzaservice.domain.discount.pizzadiscount;
import org.junit.Before;
import org.junit.Test;
import ua.com.rd.pizzaservice.domain.pizza.Pizza;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class DiscountEachNPizzaKPercentsTest {
private Disc... |
package com.gestion.servlet;
import java.io.IOException;
import javax.servlet.ServletConfig;
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.apps.nowmusicstream;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widg... |
package ca.usask.cs.srlab.simclipse.ui.view.navigator;
import java.util.ArrayList;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
import org.eclipse.emf.edit.provider.resource.... |
package com.shiva.lab3;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import android.app.Activity;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.Menu;
import android.view.View;
impor... |
package Application.Controller;
import Application.Algorithm.Parameters;
import Application.Model.ProblemResults;
import Application.Service.PSOService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Co... |
package algorithms.graph.process;
import java.util.Collection;
import algorithms.context.AbstractContextTest;
import algorithms.graph.Edge;
import algorithms.graph.EdgeWeightedGraph;
import algorithms.graph.MST;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
/**
* Created by Chen Li on 2018/5/13.
*/
@Slf... |
import java.rmi.*;
public interface Interest extends Remote {
public float simple(float p, float t,float r) throws RemoteException;
public float compound(float p,float t,float r,float n) throws RemoteException;
} |
package lab5;
import java.util.Scanner;
public class HSHocSinh extends Nguoi {
private String lop;
private String khoaHoc;
private int kyHoc;
public HSHocSinh() {
super();
}
public HSHocSinh(String lop, String khoaHoc, int kyHoc) {
super();
this.lop = lop;
this.khoaHoc = khoaHoc;
this.kyHoc = kyHoc... |
package com.lenovohit.ssm;
public class SSMConstants {
public static String SSM_MACHINE_KEY="ssm_machine";
public static String SSM_PATIENT_KEY="ssm_patient";
}
|
import java.util.LinkedList;
import java.util.Stack;
import java.util.Scanner;
public class CommonSubs {
static int[][] longestCommonSubsequence(int[] a, int[] b) {
// Complete this function
int[][] calcMatr= new int[b.length + 1][a.length + 1];
for (int i = 1; i <calcMatr.length; i++)... |
package ioprintwriter.salary;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
public class SalaryWriter {
private List<String> names;
public SalaryWriter(List<String> names) {
if (names == null) {
throw ... |
/**
* This class is generated by jOOQ
*/
package schema.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record6;
import org.jooq.Row6;
import org.jooq.impl.UpdatableRecordImpl;
import schema.tables.MilestonesMilestonere... |
package exercicio04;
import java.util.Calendar;
public class Datetime
{
private static final String YEAR = null;
private static final String MONTH = null;
private static final String DAY_OF_MONTH = null;
public static void main(String[] args) {
Datetime c = Datetime.getInstance();
System.out.prin... |
package com.edu.realestate.yelp;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class YelpEvent extends YelpElement {
private String description;
private boolean free;
private LocalDateTime timeStart;
private LocalDateTime timeEnd;
public YelpEvent(String name, String url, St... |
/*
* 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.burgosanchez.tcc.venta.ejb;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
... |
package com.sda.company.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "company")
public class Company {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "name")
... |
/* CommonFns.java
Purpose:
Description:
History:
Wed Apr 20 18:35:21 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package or... |
Recursion is combined with LinkedList.
class ListNode {
public int value;
public ListNode next;
public ListNode(int value) {
this.value = value;
next = null;
}
}
public class Solution {
public ListNode reverseInPairs(ListNode head) {
if(head == null || head.next == null) {
return... |
package com.example.hyunyoungpark.assignment3_1;
public class ListViewItem {
public int icon;
public String name;
public int getIcon() {
return icon;
}
public String getName() {
return name;
}
public ListViewItem(int icon, String name) {
this.icon=icon;
th... |
package ch7;
public class Ex_Power {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(power(3,4));
}
public static double power(double x, int n) {
double result = 1;
for(int i = 0; i < n; i++) {
result *= x;
}
return result;
}
}
|
/* Copyright 2015 The jeo project. All rights reserved.
*
* 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 appl... |
package ciphers;
import java.util.ArrayList;
import java.util.List;
import interfaces.Cipherable;
//TODO: reduce code redundancy
public class RotorMachine implements Cipherable {
private ArrayList<Rotor> rotors;
/* Constructors */
public RotorMachine() {
this.rotors = new ArrayList<Rotor>();
}
/* Methods... |
package com.torontocodingcollective.oi;
public class TGameController_Logitech extends TGameController {
public TGameController_Logitech(int port) {
super(port);
}
@Override
public double getAxis(TStick stick, TAxis axis) {
switch (stick) {
case LEFT:
switch (axis... |
package com.company;
public class Main {
public static void main(String[] args) {
//Classroom is extends interface school, sign a course with classroom and then resign a different classroom.
System.out.println("School have total number of "+ School.totalClassRoom + " classroom.");
System.o... |
package com.jerry.racecondition;
import com.jerry.racecondition.face.GeneratorSeq;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;
/**
* Date: 2017/10/3 10:40
*
* @author jerry.R
*/
public class RequestIDGenerator implements GeneratorSeq {
public stat... |
package com.chamki.log.test;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.chamki.log.entity.Log4j2Entity;
public class TestLog4j2 {
private static final Logger logger = LogManager.getLogger(TestLog4j2.class);
public static void main(String[] args... |
package co.com.almundo.callcenter.main;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import co.com.almundo.callcenter.controller.CallCenterController;
import co.com.almundo.callcenter.model.Call;
import co.com.almundo.callcenter.test.util.TestUtil;
publi... |
/**
* Copyright 2013 Simon Curd <simoncurd@gmail.com>
*
* 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.example.medicare;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class RoktoSolpota extends Activity{
TextView tvRoktoSolpota,tvRoktoSolpota1,tvRoktoSolpota2,tvRoktoSolpota3,tvRoktoSolpota4,tvRoktoSolpota5,tvRoktoSolpota6,tvR... |
package android.support.v7.widget;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
public class ExpandedRecyclerView extends RecyclerView {
public ExpandedRecyclerView(Context context) {
super(context);
}
public ExpandedRecyclerView(C... |
package MainPackage;
public class MyInteger
{
private int value;
public MyInteger(int value)
{
this.value = value;
}
public int getValue()
{
return value;
}
public boolean isEven()
{
if(this.value % 2 == 0)
{
return true;
}
else
{
return false;
}
}
publi... |
package com.datagraph.core.engine.job;
import com.datagraph.common.app.App;
import com.datagraph.common.exception.JobException;
import com.datagraph.common.Context;
import com.datagraph.core.example.SimpleApp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent... |
package com.example.mpdemo;
public class DemoController {
}
|
//Created By THLAVLU18301190
package lab01t12;
import java.util.Scanner;
public class Lab01t12 {
public static void before(int M1, int D1, int M2, int D2) {
if (((M1 < M2) && (D1 < D2)) || ((M2 > M1) && (D1 > D2))) {
System.out.println(true);
} else {
System.o... |
package com.zeyad.grability.activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.zeyad.grability.R;
public class ResumenActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);... |
package com.ubuntu4u.ubuntu4u.ubuntu4u_client.activities;
import android.Manifest;
import android.app.NotificationManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.d... |
package com.xixiwan.platform.sys.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xixiwan.platform.sys.entity.SysUser;
/**
* <p>
* 管理员表 Mapper 接口
* </p>
*
* @author Sente
* @since 2018-09-28
*/
public interface SysUserMapper extends BaseMapper<SysUser> {
}
|
package dk.sidereal.lumm.components.audio;
import com.badlogic.gdx.audio.Music;
import dk.sidereal.lumm.architecture.Lumm;
import dk.sidereal.lumm.architecture.core.Audio.AudioChannel;
public class MusicClip extends AudioClip {
Music clip;
public MusicClip(String filepath, AudioChannel category, AudioSource... |
package com.dora.service;
import com.dora.service.dto.ItensPedidoDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* Service Interface for managing ItensPedido.
*/
public interface ItensPedidoService {
/**
* Save a itensPedido.
*
* @param iten... |
//package com.bnrc.ui.rjz;
//
//import com.bnrc.busapp.R;
//
//import android.app.Activity;
//import android.content.Context;
//import android.graphics.drawable.ColorDrawable;
//import android.view.LayoutInflater;
//import android.view.MotionEvent;
//import android.view.View;
//import android.view.View.OnClickListener;... |
package com.java.project.BackEnd.Service.Balance;
import com.java.project.BackEnd.Mapper.BalanceMapper;
import com.java.project.BackEnd.Mapper.TransactionMapper;
import com.java.project.BackEnd.Model.Customer;
import com.java.project.BackEnd.Model.CustomerBalance;
import com.java.project.BackEnd.Service.Auth.Aut... |
package com.syscxp.biz.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* 登录页面
*
* @author HenryYan
*/
@Controller
public class LoginController {
@RequestMapping(value = "/login")
... |
package nihil.publicdefender;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.Vi... |
package com.liyang.book.service;
import com.liyang.book.entity.Book;
import com.liyang.book.entity.Bookpic;
import com.liyang.book.mapper.BookMapper;
import com.liyang.book.mapper.BookpicMapper;
import com.liyang.commons.Factory;
import org.apache.ibatis.session.SqlSession;
/*
*@author:李洋
*@date:2019/7/29 17:21
*/... |
/*
* 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 InternalForms;
import Forms.Login;
import Forms.MainMenu;
import Forms.SalePayment;
import Model.CompletedOrder;
import Model.... |
package com.notely.ui.details;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.notely.R;
import com.notely.model.Note;
import com.notely.ui.BaseActiv... |
package in.stevemann.tictactoe.services;
import in.stevemann.tictactoe.entities.Game;
import in.stevemann.tictactoe.entities.Move;
import in.stevemann.tictactoe.entities.Player;
import in.stevemann.tictactoe.enums.GridType;
import in.stevemann.tictactoe.enums.PieceType;
import in.stevemann.tictactoe.pojos.Board;
impor... |
public class LC189 {
static void reverse(int[] nums,int start,int end){
while(start<end){
int tmp=nums[start];
nums[start]=nums[end];
nums[end]=tmp;
start++;
end--;
}
}
static int[] rotate(int[] nums, int k) {
k=k%nums.lengt... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.wellknownurl;
import java.net.URISyntaxException;
import org.apache.http.client.utils.URIBuilder;
/**
* Builds URL to be used for redirection after account associa... |
package Arrays;
import java.util.Scanner;
public class Biggest {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the number of elements");
int n = in.nextInt();
int[] a = new int[n];
System.out.println("Enter the "+n+" elements");
for(int ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.