text stringlengths 10 2.72M |
|---|
/*
Copyright 2015 Alfio Zappala
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 in writing, software... |
package com.gaurav.main;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.gaurav.entity.Address;
/*import com.gaurav.entity.EmployeeDetails;*/
import com.gaurav.entity.EmployeeDetails;
import com.gaurav.entity.Vehicle;
public class Tes... |
package com.mavenmokito.test.appmokito;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.haaSize;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.atLeast;
import static org.mockito.Mockito.never;
import static org.... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package simulator.srl.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ec... |
package Customer;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import javax.swing.JButton;
imp... |
package com.cinema.biz.model;
import com.cinema.biz.model.base.TSimType;
public class SimType extends TSimType {
} |
package beakjoon11;
import java.util.Arrays;
import java.util.Scanner;
public class Hw_2447 {
static char[][] board;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N=sc.nextInt();
board = new char[N][N];
for(int i=0; i<N; i++) {
Arrays.fill(board[i], ' ');
}
mak... |
package de.wiltherr.ws2812fx.ui.views.live;
import com.vaadin.data.Binder;
import com.vaadin.data.StatusChangeListener;
import com.vaadin.data.provider.ListDataProvider;
import com.vaadin.event.selection.MultiSelectionListener;
import com.vaadin.shared.ui.slider.SliderOrientation;
import com.vaadin.ui.CheckBoxGroup;
... |
package com.openclassrooms.apisafetynet;
import static org.hamcrest.CoreMatchers.containsString;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.se... |
package com.javabeans.home;
import javax.faces.bean.ManagedBean;
@ManagedBean
public class HomeProducts {
private int product_id;
private String product_name;
private float price;
private String product_image;
private String product_category;
private String description;
public String getProduct_category() {
... |
/*
* 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... |
/* ------------------------------------------------------------------------------
* 软件名称:BB语音
* 公司名称:乐多科技
* 开发作者:Yongchao.Yang
* 开发时间:2016年3月4日/2016
* All Rights Reserved 2012-2015
* -------------------------------------------------------... |
/*
* 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.bk.rs.dao;
import com.bk.rs.entity.Person;
import com.bk.rs.entity.Student;
import java.util.ArrayList;
/**
*
* @autho... |
package com.example.ezyfood3.views;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... |
package com.sha.springbootmongo.projection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
/**
* @author sa
* @date 1/10/21
* @time 12:04 PM
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CountryAggregation
{
... |
package com.miyatu.tianshixiaobai.activities.search;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import com.miyatu.tianshixiaobai.R;
import com.miyatu.tianshixiaobai.activities.BaseActivity;
import com.miyatu.tianshixiaobai.activities.homepage.Vi... |
package com.netcracker.app.domain.shop.controllers;
import com.netcracker.app.domain.shop.services.TechService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
... |
package com.honor.mybatis.entity;
public class Order {
private Integer id;
private String orderName;
private User user;
private Student student;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getOrderName() {... |
/*
* 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 stockhelper;
import org.jsoup.Jsoup;
import org.jsoup.nodes.*;
import java.net.URL;
import java.net.MalformedURLException;
impo... |
package codewars;
import java.util.LinkedList;
import java.util.List;
public class UpsideDown {
public UpsideDown() {
// TODO Auto-generated constructor stub
}
public static int solve(int x, int y) {
int countUpdown = 0;
for (int i=x; i < y; i++) {
String currNum = String.valueOf(i);
... |
/*
* 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 listya
*/
public class Literacy implements Comparable<Literacy> {
private String country;
private String ye... |
import java.awt.Graphics;
import java.lang.Math;
public class EntityEnemy4 extends Enemy {
private static int numberOfInstances = 0;
private static String[] paths;
private static int[] indexs;
private int sprite = 0;
public EntityEnemy4(GameSprites s, int w, int h, Sounds sounds) {
super((... |
package com.defalt.lelangonline.ui.items.add;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Bu... |
package Composite;
public class Main {
public static void main(String[] args) {
Folder root = new Folder("design pattern");
Folder d1= (Folder) root.addComponent(new Folder("structure"));
Folder d2= (Folder) root.addComponent(new Folder("creation"));
Folder d3= (Folder) root.addComponent(new Folder("update"));
... |
package com.javawebtutor.Controllers.AdminControllers;
import com.javawebtutor.Controllers.Controller;
import javafx.event.ActionEvent;
import java.io.IOException;
public class AdminMainController extends Controller {
public void users(ActionEvent event) throws IOException {
this.changeScene(event, "/Adm... |
package com.ut.healthelink.model;
import com.ut.healthelink.validator.NoHtml;
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 org.hibernate.validator.... |
package com.foodaholic.interfaces;
import com.foodaholic.items.ItemPromo;
public interface PromoCodeListener {
void onStart();
void onEnd(String success, String result, String msg, ItemPromo promo);
}
|
package com.example.vulnerabilitytester;
import java.net.*;
import java.io.*;
import android.util.Log;
public class SocketClass {
private String serverName;
private String serverIP="";
private static int port = 23;
private Socket client;
private OutputStream outToServer;
private DataOutputStream out;
private S... |
package com.yeebar.aer;
import android.app.Application;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Message;
import android.os.SystemClock;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.v4... |
import java.awt.*;
public class Triangle {
private points A;
private points B;
private points C;
@Override
public String toString() {
return "Triangle{" +
"A=" + A +
", B=" + B +
", C=" + C +
'}';
}
public points getA... |
package io.shodo.banking.account.infra.renderer;
import io.shodo.banking.account.domain.core.Account;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
class StatementsRenderer {
private static final StatementRowData HEADER = new StatementRowData("Date", "Amount", "Op... |
package com.grocery.codenicely.vegworld_new.my_orders.model;
import com.grocery.codenicely.vegworld_new.my_orders.OrderDetailsListCallback;
/**
* Created by ramya on 6/11/16.
*/
public interface OrderDetailsProvider {
void getOrderDetails(String access_token, String order_id, OrderDetailsListCallback orderDeta... |
package com.example.module1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ApplicationContextEvent;
import org.springframework.stereotype.Component;
import java.net.InetAddress;
import java.net.UnknownHostExcep... |
import java.util.HashMap;
import java.util.Map;
public class RandomPointer {
public static void main(String[] args) {
}
public Node CopyRandomLit(Node head) {
if (head == null)
return null;
Map<Node, Node> nodeMap = new HashMap<>();
Node resultHead = new Node(0, nul... |
package com.product.controller;
import com.product.model.ProductService;
import com.product.model.ProductVO;
import com.util.MyUtil;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServlet;
import javax.servl... |
package br.edu.ifpr.consultacondutor.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationE... |
/* GenericFilter.java
Purpose: A generic class to help implementing servlet filter
Description:
History:
2001/11/13 14:46:46, Create, Tom M. Yeh.
Copyright (C) 2001 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 W... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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 ... |
package com.miyatu.tianshixiaobai.activities.mine.XiaoBaiSpace;
import android.graphics.Color;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
impor... |
/**
* This hand consists of five cards with consecutive ranks and the same
suit. For the sake of simplicity, 2 and A can only form a straight flush with K but not
with 3. The card with the highest rank in a straight flush is referred to as the top card
of this straight flush. A straight flush always beats any straight... |
package se.rtz.csvtool.command;
import java.io.IOException;
import java.io.PrintStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Strings;
import com.google.common.collect.Ordering;
import se.rtz.csvtool.commonArgs.CsvInputExtractor;
import se.rtz.tool.arg.P... |
package rs2.util.constants;
/**
*
* @author Jake Bellotti
* @since 1.0
*/
public class DialogueConstants {
public static final int[] NPC_IDS = {4882, 4887, 4893, 4900};
public static final int[] PLAYER_IDS = {968, 973, 979, 986};
public static final int[] OPTION_IDS = {2459, 2469, 2480, 2492};
public stati... |
package com.trump.auction.activity.service.impl;
import com.cf.common.util.mapping.BeanMapper;
import com.trump.auction.activity.dao.ActivityShareDao;
import com.trump.auction.activity.model.ActivityShareModel;
import com.trump.auction.activity.service.ActivityShareService;
import lombok.extern.slf4j.Slf4j;
import org... |
package com.gestion.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;
/**
* The persistent class for the inventaire_client database table.
*
*/
@Entity
@Table(name="inventaire_client")
public class InventaireClient implements Serializab... |
package com.yidatec.weixin.dao.security;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
impo... |
package de.omikron.server;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
public class ServerConnection {
private ServerSocket server;
private int port;
private ArrayList<ClientHandler> clientList;
private boolean isWaitingForClients;
public S... |
/*
* 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.topica.vn.baitap_thaytrungnt9.JDBC;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.ArrayList;... |
package org.sunshinelibrary.turtle;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import org.sunshinelibrary.turtle.init.InitService;
import org.sunshinelibrary.turtle.syncservice.AppSyncService;
import org.sunshinelibrary.turtle.utils.Logger;
import org.sunsh... |
package com.example.todolist;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class dbHelper extends SQLiteOpenHelper {
public dbHelper(Context context) {
super(context, db.DB_NAME, null , db.DB_VERSION);
}
@... |
package com.trump.auction.goods.model;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 商品图片model
* @author zhangqingqiang
* @since 2017-12-21
*/
@Data
@ToString
public class ProductPicModel implements Serializable{
private Integer id;
private String ... |
package com.jigurd.trashrss;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.widget.TextView;
import android.widget.Toast;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.Xml... |
package com.example.ren95.lab1_shakurov;
import android.inputmethodservice.ExtractEditText;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Layout;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.EditTex... |
//Name: Surbhi Goel
//USC loginid: surbhigo@usc.edu
//CS 455 PA2
//Fall 2016
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;
public class PolynomialCalculator
{
/**
Return a Polynomial version
* As user enter Create command the prompt will ask... |
package com.aoharkov.soapproducing.endpoint;
import com.aoharkov.soapproducing.GetTicketRequest;
import com.aoharkov.soapproducing.GetTicketResponse;
import com.aoharkov.soapproducing.ObjectFactory;
import com.aoharkov.soapproducing.SaveTicketRequest;
import com.aoharkov.soapproducing.SaveTicketResponse;
import com.ao... |
package com.example.paindairy.entity;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
... |
package net.sduhsd.royr6099.unit11.gradebooklists;
//© A+ Computer Science - www.apluscompsci.com
//Name -
//Date -
//Class -
//Lab -
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import static java.lang.System.*;
import static java.util.Arrays.*;
import j... |
package funciones;
import org.testng.ITestResult;
public class SoutTest {
//mostrar el resultado : pass / fall /bloqued
public static void SouTest(ITestResult result) {
System.out.println("El test" + result.getMethod().getDescription() + " resulto: " + result.getStatus());
}
}
|
package com.zafkiel.Aspect;
import com.zafkiel.POJO.AroundServiceReqVO;
import com.zafkiel.POJO.AroundServiceRspVO;
import com.zafkiel.Utils.AopTargetUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotat... |
/*
* 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 com.androidcookbook.sensorupordown;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.... |
package me.kpali.wolfflow.core.exception;
/**
* 任务中断异常
*
* @author kpali
*/
public class TaskInterruptedException extends Exception {
public TaskInterruptedException() {
super();
}
public TaskInterruptedException(String message) {
super(message);
}
public TaskI... |
import java.io.*;
import java.util.*;
class baek__14697 {
static int[] dx = new int[3];
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] temp = br.readLine().split(" ");
for (int i = 0; i <... |
public class UserDaoFactory {
public UserDao createUserDao() {
return new UserDaoImpl();
}
}
|
package com.revature.web;
import javax.naming.AuthenticationException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by achen on 12/8/2016.
*/
public class FrontController {
public v... |
package md.tx.materialdesigndemo.complexCoordinatorLayout;
import android.content.Context;
import android.content.Intent;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.vie... |
package com.kaka.blog.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessage... |
package com.mtl.hulk.bench.model;
public class OrderEntry {
String orderNum;
public OrderEntry(String orderNum) {
this.orderNum = orderNum;
}
}
|
package prueba.test;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test.autoconfig... |
package scripting;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import world.Climate;
import world.Worldhandler;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.rapplebob.ArmsAndArmorChampion... |
package com.example.elearning.repositories;
import com.example.elearning.entities.Apprenant;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.sprin... |
package top.lvjp.rabbitmqconsumer.config;
import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.s... |
package com.example.cam.timetable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import java.util.A... |
package emp.entidades;
import java.io.Serializable;
import java.util.List;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
imp... |
package com.entities;
public class Product {
String id;
String name;
public Product(String id, String name) {
// TODO Auto-generated constructor stub
this.id = id;
this.name=name;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();
}
@Override
pu... |
package web.viewhelper.impl;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import classes.util.Resultado;
import dominio.evento.Evento;
import dominio.e... |
/**
* $Id: Roster.java,v 1.19 2005/09/13 15:15:44 nicks Exp nicks $
*
* Container class form maintaining information about singers, conductors,
* directors and other production participants.
*
* Originally part of the AMATO application.
*
* @author Nick Seidenman <nick@seidenman.net>
* @version $Revision: 1.... |
package algorithm._19;
public class Solution {
public static void main(String[] args) {
ListNode listNode = new ListNode(1);
ListNode listNode1 = new ListNode(2);
ListNode listNode2 = new ListNode(3);
ListNode listNode3 = new ListNode(4);
ListNode listNode4 = new ListNode(5... |
package tal.com.orders.entities;
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.persistence.ManyToOne;
import javax.persistence.Table;
@E... |
package domain;
import java.time.LocalDate;
public interface KanVervallen {
LocalDate getVervaldatum();
boolean isVervallen();
}
|
/**
*/
package mmodelb.impl;
import mmodela.impl.ItemImpl;
import mmodelb.ItemB;
import mmodelb.MmodelbPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Item B</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public ... |
/*
* Copyright 2010 mathieuancelin.
*
* 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... |
/***********************************************************************
* Module: PayInfoEnd.java
* Author: djl
* Purpose: Defines the Class PayDetail
***********************************************************************/
package com.lenovohit.ebpp.bill.model;
import javax.persistence.Column;
import javax.per... |
/*
* Author: Adam Liszka
* License: See LICENSE.txt
* Description: Listens for clocks that have "[gameclock]" or
* "[realclock]" on the first line of the sign. There is no
* listener for block destroyed events because clocks check
* if they are still valid in the ClockUpdater loop and remove
* themselves... |
package com.example.dailymaple;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.Window;
import android.widget.Bu... |
package android.transitions.everywhere.utils;
import android.animation.LayoutTransition;
import android.annotation.TargetApi;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.view.ViewGroup;
import java.lang.reflect.Field;
@TargetApi(VERSION_CODES.HONEYCOMB)
public class ViewGro... |
package com.chao.wifiscaner.action;
import java.util.ArrayList;
import android.app.Activity;
import com.chao.wifiscaner.controller.Controller;
import com.chao.wifiscaner.controller.PutController;
import com.chao.wifiscaner.model.PutItem;
import com.chao.wifiscaner.model.WifiItem;
import com.chao.wifiscaner.ui.PutAct... |
package final_G22;
import static spark.Spark.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Comparator;
im... |
package view.insuranceSystemView.developView.developer.showInsurance;
import java.awt.Color;
import java.awt.event.ActionListener;
import model.data.insuranceData.AbsInsuranceData;
import model.dataList.IntDataList;
import view.aConstant.InsuranceSystemViewConstant;
import view.component.BasicLabel;
import view.compo... |
//program to demonstrate to promation rule
class promation
{
public static void main(String args[])
{
byte a,b=2;
short s,k=5;
int i,m=2,k=5;
a=b;
Systm.out.println("Value of var a="+a);
a=b*10;
s=k*b;
i=k*10+b;
i=m*k;
s=m*2+k;
}//close of main
}//close of class |
import java.util.Scanner;
public class Runner {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("write word1 in 2^ :");
String word1 =scanner.nextLine();
System.out.println("write word2:");
String word2 =scanner.nextLine... |
import java.util.*;
public class Ch19_05 {
public static enum Color {WHITE, BLACK};
public static class GraphVertex {
Color color;
List<GraphVertex> edges;
GraphVertex(Color color, List<GraphVertex> edges) {
this.color = color;
this.edges = edges;
}
}
//assumes vertex inputted is within a co... |
package com.esum.comp.dbc.template;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.Node... |
package xyz.mcallister.seth.HG.scoreboard;
import xyz.mcallister.seth.HG.Main;
/**
* Created by sethm on 30/05/2016.
*/
public class Manager
{
private Main plugin;
public Manager(Main plugin)
{
this.plugin = plugin;
}
public void init() {}
public void tear() {}
public void r... |
package com.gaby.exception;
/**
* @Description: 自定义的异常父类
* @Author: wengzhongjie
* @CreateDate: 2019-03-14 14:05
*/
public class BaseException extends RuntimeException{
public BaseException() {
}
public BaseException(Throwable cause) {
super(cause);
}
public BaseException(Strin... |
package cn.edu.nju.software.timemachine.service;
import cn.edu.nju.software.timemachine.entity.Picture;
public interface IPictureService<T extends Picture> extends IService<T> {
public long addPicture(T picture);
public T getPicture(long id);
}
|
package pp;
import org.apache.log4j.Logger;
import pp.model.Btl;
import pp.model.Fighter;
import pp.model.xml.CGlad;
import pp.service.GlRuService;
import java.io.IOException;
import java.util.Calendar;
import java.util.Collections;
import java.util.TimeZone;
/**
* Created by alsa on 09.08.2016.
*/
public class Ch... |
package com.pelephone_mobile.songwaiting.ui.fragments;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.... |
/**
*
*大智慧股份有限公司
* Copyright (c) 2006-2015 DZH,Inc.All Rights Reserved.
*/
package com.gw.steel.steel.util.common;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
/**
*
* @author log.yin
* @version $Id: Md5ParamsGenerator.java, v 0.1 2015年2月3日 下午7:25:16 log.yin Exp $
*/
public class Md5Pa... |
package org.apress.prospark;
import java.nio.charset.StandardCharsets;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.eclipse.paho.c... |
package Ventas;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;
import Conexion.Conectar;
public class GuardarVenta {
public void guardarventa(S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.