text stringlengths 10 2.72M |
|---|
package com.google.engedu.puzzle8;
import android.app.Application;
import android.graphics.Bitmap;
import android.support.test.runner.AndroidJUnit4;
import android.test.ApplicationTestCase;
import android.util.Log;
import org.junit.runner.RunWith;
import org.junit.Before;
import org.junit.Test;
@RunWith(AndroidJU... |
package com.tencent.mm.plugin.backup.bakoldlogic.bakoldpcmodel;
import com.tencent.mm.plugin.backup.bakoldlogic.bakoldpcmodel.e.2;
import com.tencent.mm.plugin.backup.bakoldlogic.d.b.a;
import com.tencent.mm.plugin.backup.f.b;
import com.tencent.mm.plugin.backup.h.s;
import com.tencent.mm.sdk.platformtools.x;
class e... |
package com.example.places.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.time.LocalTime;
@AllArgsConstructor
@Data
public class Interval {
private LocalTime from;
private LocalTime to;
}
|
package com.github.jrubygradle.jem;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Marcelo Guimarães <ataxexe@backpackcloud.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without... |
package api.io.reader_writer;
import java.io.FileReader;
import java.io.IOException;
public class FileReaderEx {
public static void main(String[] args) {
/*
* 문자기반으로 읽어들이는 클래스는 FileReader클래스 입니다
* 2바이트 단위로 읽고쓰기 때문에 문자를 쓰기에 적합합니다.
*/
FileReader fr = null;
try {
fr = new FileReader("... |
package com.dzh.foodrs;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springfram... |
package com.skilldistillery.blackjack;
import java.util.List;
import com.skilldistillery.cards.Card;
import com.skilldistillery.gameabstractions.Hand;
public class BlackjackHand extends Hand {
public BlackjackHand() {
super();
}
public void displayCards(String title , boolean withFaceDownCard) {
if(with... |
// Sun Certified Java Programmer
// Chapter 1, P45
// Declarations and Access Control
public class PrimitiveRanges {
public static void main(String[] args) {
System.out.println("Character.BITS == " + Character.SIZE);
System.out.println("Character.BYTES == " + Character.BYTES);
System.out.p... |
package seveida.firetvforreddit.domain.objects;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import seveida.firetvforreddit.response.objects.Child;
import seveida.firetvforreddit.response.objects.SubredditResponse;
public class SubredditDetails {
@NonNull public final S... |
package com.example.rnztx.donors.feeds.chat;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.EditText;
im... |
package com.jvmless.threecardgame.domain.game;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;
public class Results {
private Set<Result> results = new HashSet<>();
public void win(HostId hostId, GamerId gamerId) {
this.results.add(new Result(gamerId, hostId, ResultSt... |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Stri... |
package com.techalb.composite.test;
import java.util.ArrayList;
import java.util.List;
public class Folder implements IStorageItem {
private String name;
private List<IStorageItem> children;
public Folder(String name) {
this.name = name;
this.children = new ArrayList<IStorageItem>();
}
public void addStora... |
/*
* Copyright (C) 2022-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
/*
* 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 Memoria;
import javax.swing.JLabel;
/**
*
* @author JP
*/
public class Lista {
private LNodo Inicio;
... |
package com.thatredhead.jmath.obj.impl.ops;
/**
* Created by JGallicchio on 3/16/2017.
*/
public class Divide {
}
|
package main.java.heap;
import main.java.objects.CachedObject;
public class HeapObject {
private long priority;
private CachedObject object;
private int index;
public HeapObject(long priority, CachedObject object, int index){
this.priority = priority;
this.object = object;
thi... |
package com.flutterwave.raveandroid.rave_presentation.di.ugmomo;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
@Scope
@Retention(RetentionPolicy.RUNTIME)
public @interface UgScope {
}
|
/*
* 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 Clases;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.sql.ResultSet;
import java.... |
package com.mysql.cj.protocol.a;
import com.mysql.cj.exceptions.ExceptionFactory;
import com.mysql.cj.exceptions.WrongArgumentException;
import com.mysql.cj.protocol.ProtocolEntity;
import com.mysql.cj.protocol.ProtocolEntityFactory;
import com.mysql.cj.protocol.Resultset;
import com.mysql.cj.protocol.ResultsetRows;
i... |
package test;
import game.Jugador;
import game.Tablero;
public class JugadorTest {
Tablero mapa = null;
Jugador jugador = null;
Jugador segundoJugador = null;
// @Before
// public void init() {
// mapa = new Tablero(2, 2);
// mapa.crearTablero(2, 2);
// jugador = new Jugador(0, mapa, "Mario");
// segundoJugad... |
package cn.chinaSoft.pandaMall.common.entity;
import java.sql.Timestamp;
import cn.chinaSoft.pandaMall.common.constant.Currency;
/*商品实体类*/
public class Good {
private String id;
//商品名称
private String name;
//商品图片URL
private String imgNames;
//价格
private double price;
//商品计价货币
private String currency=Currency... |
package com.infy.surveyExpert.model;
import java.time.LocalDate;
public class Survey {
private Organizer organizer;
private Integer id;
private LocalDate startDate;
private LocalDate endDate;
private Integer status;
public Organizer getOrganizer() {
return organizer;
}
public void setOr... |
package com.rockwellcollins.atc.limp.reasoning;
import java.util.Map;
import com.rockwellcollins.atc.limp.ConstantDeclaration;
import com.rockwellcollins.atc.limp.Expr;
import com.rockwellcollins.atc.limp.IdExpr;
import com.rockwellcollins.atc.limp.VariableRef;
import com.rockwellcollins.atc.limp.reasoning.visitor.Li... |
package mop.main.java.backend.caching;
import java.util.HashMap;
public abstract class Cache<K, V> {
private final HashMap<K, V> map = new HashMap<>();
public void set(K key, V value) {
map.put(key, value);
}
public V get(K key) {
return map.get(key);
}
}
|
package mouse.shared;
import java.awt.*;
import java.io.Serializable;
/**
* Created by Florian on 2014-04-13. Adapted by Kevin on 20014-07-18
*/
public class Mouse implements Serializable {
//A mouse always has a position, either for simulation or for visualization
protected Point position;
//A mouse a... |
package com.cos.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.cos.entities.Image;
import com.cos.entities.Product;
import com.cos.repositories.I... |
/*
* This class is auto generated by https://github.com/hauner/openapi-processor-spring.
* DO NOT EDIT.
*/
package generated.api;
import generated.model.Book;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.... |
package com.rc.portal.webapp.model;
public class NotEnoughException extends Exception {
}
|
// assignment 9
// pair p134
// Singh, Bhavneet
// singhb
// Wang, Shiyu
// shiyu
import java.util.Comparator;
// This class represents a comparator for integers
class IntegerComparator implements Comparator<Integer> {
/* Template:
*
* Fields:
* None
*
* Methods:
* ...this.com... |
import java.util.Scanner;
public class CountAllWords {
//Write a program to count the number of words in given sentence.
///Use any non-letter character as word separator.
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
String input = reader.nextLine();
//Split the text usi... |
public class DayOne {
public static void main (String[] args) {
// #1
// Accept an isbn, name, author, price, and print the values.
printBookStuff(25, "Mary Had a Little Lamb", 250);
// #2
// Compute the quotient and remainder for a provided number
// #3
// Swap two numbers using a ... |
package dependency_inversion;
public class Main {
public static void test() {
MySQLConnection mySQLConnection = new MySQLConnection();
PasswordReminder passwordReminder = new PasswordReminder(mySQLConnection);
passwordReminder.dbConnectionInterface.connect();
}
public static voi... |
package com.tencent.mm.plugin.appbrand.jsapi.a;
import android.app.Activity;
import com.tencent.mm.plugin.appbrand.jsapi.a.c.17;
import com.tencent.mm.plugin.appbrand.jsapi.a.c.9;
import com.tencent.mm.plugin.appbrand.jsapi.a.c.a;
import com.tencent.mm.plugin.appbrand.s.b;
import com.tencent.mm.plugin.appbrand.s.j;
im... |
package com.nationsky.vote.tasks.vote.dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import com.ds.framework.db.DataBaseUtil;
import com.ds.fram... |
package com.backend.SecondProject;
import static org.junit.Assert.assertTrue;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.TokChatBackend.config.DBconfg;
/**
* Unit test for simple App.
*/... |
package edu.uci.ics.sdcl.firefly.report.predictive;
import java.util.Date;
import java.util.HashMap;
import java.util.TreeMap;
import edu.uci.ics.sdcl.firefly.report.descriptive.Filter;
/**
* Class responsible to keep the multiple filter combinations and the respective outcome of
* computing predictors with the d... |
package com.ccxia.cbcraft.item;
import com.ccxia.cbcraft.CbCraft;
import com.ccxia.cbcraft.creativetab.CreativeTabsCbCraft;
import net.minecraft.item.Item;
public class ItemEggMilkDough extends Item {
public ItemEggMilkDough() {
this.setUnlocalizedName(CbCraft.MODID + ".eggMilkDough");
this.setRegistryName("egg... |
package edu.gatech.cs2340.spacetraders.views;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import java.util.ArrayList;... |
package com.netease.course.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
/**
* @author menglanyingfei
* @date 2017-8-26
*/
@Aspect
public class LoggingAspect {
/**
* 正常返回... |
package br.ufs.livraria.dao;
import javax.ejb.Stateless;
import br.ufs.livraria.modelo.Funcionario;
@Stateless
public class FuncionarioDAO extends DAO<Funcionario> {
private static final long serialVersionUID = 1L;
public FuncionarioDAO() {
super(Funcionario.class);
}
} |
/*
package com.jpa.dao.impl;
import com.jpa.dao.BaseJpaDao;
import com.jpa.filter.FilterConverter;
import com.jpa.filter.FilterItem;
import com.jpa.filter.Order;
import com.jpa.operator.FilterOperator;
import com.jpa.operator.OrderOperator;
import com.jpa.query.Filters;
import com.jpa.query.Query;
import com.jpa.utils... |
package me.hsgamer.bettergui.npcopener;
import java.util.HashMap;
import java.util.Map;
public class InteractiveNPC {
private final int id;
private String[] args = new String[0];
public InteractiveNPC(int id) {
this.id = id;
}
public static InteractiveNPC deserialize(Map<String, Object>... |
package exam_module5.demo.model;
import javax.persistence.*;
@Entity
public class Car {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String code;
@ManyToOne(targetEntity = Type.class)
@JoinColumn(name = "type_id", referencedColumnName = "id")
private Type... |
package dk.sdu.mmmi.cbse.common.data;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
*
* @author jcs
*/
public class World {
private int TILESIZE;
private final Map<String, Entity> entityMap = new Con... |
/*
* Copyright 2008 University of California at Berkeley
*
* 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... |
import java.util.Random;
import java.util.Scanner;
public class Random_num{
public static void main(String[] args) {
Random rand=new Random();
for(int i=1;i<3;i++) {
System.out.println(rand.nextInt());
System.out.println(rand.nextDouble());
System.out.println(rand.nextLong());
}
}
}
|
import java.util.Scanner;
public class Main {
static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
double[][] x = new double[3][3];
double[][] y = new double[3][3];
System.out.print("Enter matrix1: ");
readM(x);
System.out.p... |
package testHIbernate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
@Entity
public class SuperHero extends AbstractEntity {
// @NotEmpty
@Column(unique = true)
public String name;
@ManyToOne
// @NotNull
public SuperPower power;
// @NotEmpty
publi... |
package edu.up.cs301.quoridor;
import edu.up.cs301.game.GamePlayer;
import edu.up.cs301.game.actionMsg.GameAction;
/**
* Created by lieu18 on 3/25/2018.
*/
public class QuoridorUndoTurn extends GameAction {
private static final long serialVersionUID = 420696942069L;
/**
* constructor for GameAction
... |
package com.wlc.ds.tree;
/**
* 检查一颗二叉树是否是二叉查找树 二叉查找树的定义为对于每一个结点, 它的左边的结点必须小于等于它,右边的结点必须大于它
* 自上而下传递一个区间,如果某个值不在区间里,则说明不是
* @author lanchun
*
*/
public class IsBST {
private static boolean checkBST(TreeNode root, int min, int max) {
if (root == null)
return true;
if (root.data >= max || root.data < min) {... |
package org.kernelab.basis.test;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.kernelab.basis.HashedEquality;
import org.kernelab.basis.Tools;
import org.kernelab.basis.WrappedHashMap;
import org.kernelab.basis.WrappedHashSet;
p... |
package elements;
import primitives.Color;
import primitives.Point3D;
import primitives.Vector;
/**
* class PointLight to apply point lighting
*
* @author Rina and Tamar
*
*/
public class PointLight extends Light implements LightSource
{
/**
* PointLight values
*/
protected Point3D _posi... |
package com.jamesball.learn.tictactoe;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class PlayT... |
package co.th.aten.network;
public class Constants {
public static int GROUP_STAFF=1;
}
|
package com.mobica.rnd.parking.parkingbetests;
import com.mobica.rnd.parking.parkingbetests.support.*;
import com.mobica.rnd.parking.parkingbetests.support.extractors.DatesExtractor;
import com.mobica.rnd.parking.parkingbetests.support.extractors.IDataExtractor;
import org.json.simple.JSONArray;
import org.json.simple... |
package com.bcgbcg.br.dto;
public class BCDto {
private int MON,TUE,WEN,TUR,FRI,SAT,SUN;
public BCDto() {
super();
// TODO Auto-generated constructor stub
}
public BCDto(int mON, int tUE, int wEN, int tUR, int fRI, int sAT, int sUN) {
super();
MON = mON;
TUE = tUE;
WEN = wEN;
TUR = t... |
package package1;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**********************************************************************
* Creates the Panel for the TicTacToe GU... |
package com.dudg.demo.web;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.dudg.demo")
@MapperScan("com.dudg.demo.dao.mapper")
public class DemoWebApp... |
package com.tt.miniapp.feedback.entrance;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v4.app.k;
import android.text.TextUtils;
import com.storage.async.Action;
import com.... |
package org.apache.commons.net.io;
import java.util.EventListener;
import org.apache.commons.net.util.ListenerList;
public class CopyStreamAdapter implements CopyStreamListener {
private final ListenerList internalListeners = new ListenerList();
public void bytesTransferred(CopyStreamEvent event) {
for (Ev... |
package org.xtext.example.mydsl.tests.kmmv.compilateur;
import java.util.List;
import java.util.stream.Collectors;
import org.xtext.example.mydsl.mml.CrossValidation;
import org.xtext.example.mydsl.mml.DT;
import org.xtext.example.mydsl.mml.FrameworkLang;
import org.xtext.example.mydsl.mml.GTB;
import org.xtext.examp... |
package org.samp;
public class First {
private void firstpgm() {
System.out.println("Welcome to Java Selinium course");
System.out.println("Week end batch");
System.out.println("Project class 2nd day class");
}
public static void main(String[] args) {
First f = new First();
f.firstpgm();
}
}
|
package com.tencent.mm.plugin.aa.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.aa.a.a.h;
import com.tencent.mm.vending.h.e;
public class e$a implements e<Void, Void> {
final /* synthetic */ e eAp;
public e$a(e eVar) {
this.eAp = eVar;
}
public final /* synthetic */ Object c... |
package com.chocolate.chocoland;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ChocolandApplication {
public static void main(String[] args) {
SpringApplication.run(ChocolandApplication.class, args);
}
... |
package com.example.ideskdemo.object;
public class AdvertisementRating {
String ratingId;
String advertisementId;
public String getRatingId() {
return ratingId;
}
public void setRatingId(String ratingId) {
this.ratingId = ratingId;
}
String userId;
float rating;
S... |
package org.automator.data.parser;
public interface IDataParser {
}
|
package com.team.zhihu.bean;
public class Good {
private Integer id;
private Integer userid;
private Integer eassayid;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserid() {
return userid;
}
... |
/*
* Copyright © 2014 YAOCHEN Corporation, All Rights Reserved.
*/
package com.yaochen.address.data.domain.address;
import java.util.Date;
public class AdCollections {
/** 用户ID */
private String userid;
/** 收藏的地址的ID */
private Integer addrId;
/** */
private Date createTime;
public St... |
package com.fundwit.sys.shikra.user.service;
import com.fundwit.sys.shikra.authentication.LoginUser;
import com.fundwit.sys.shikra.exception.ResourceNotFoundException;
import com.fundwit.sys.shikra.user.persistence.po.Identity;
import com.fundwit.sys.shikra.user.persistence.po.User;
import com.fundwit.sys.shikra.user.... |
/*
Punit Shah and Jack Ingalls
2007 New Mexico Supercomputing Challenge
School: Albuquerque Academy
Team: 7
Project Name: Deriving Ramsey Numbers
*/
//------------------------------------------------------------------------------------------
// These methods help to debug aspects of the program by printing inform... |
package org.springframework.sync.diffsync;
import java.io.Serializable;
public interface IPersistenceCallbackRegistry {
void addPersistenceCallback(PersistenceCallback<? extends Serializable> persistenceCallback);
PersistenceCallback<? extends Serializable> findPersistenceCallback(String key);
}
|
package edu.uis.mastermind.view;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
public class GreetingScreen {
public JFrame frmWelcome;
private JButton player1Button;
private JButton player2Button;
// ... |
package com.ts.timesTable.vo;
public class TimesTableVo {
private int firstTimes;
private int lastTimes;
private int firstMultiplier;
private int lastMultiplier;
public int getFirstTimes() {
return firstTimes;
}
public void setFirstTimes(int firstTimes) {
this.firstTimes = firstTimes;
}
public int ... |
package main.java;
import java.lang.*;
import java.lang.System;
import java.util.concurrent.ThreadFactory;
/**
* Created by alexiaborchgrevink on 11/17/17.
*/
public class CustomThreadFactory {
private String name;
private int counter;
private int maxThreads;
public CustomThreadFactory(String nam... |
package com.tencent.mm.plugin.emoji.ui.v2;
import android.graphics.Bitmap;
import com.tencent.mm.ak.a.c.i;
class EmojiStoreV2DesignerUI$15 implements i {
final /* synthetic */ EmojiStoreV2DesignerUI ipH;
EmojiStoreV2DesignerUI$15(EmojiStoreV2DesignerUI emojiStoreV2DesignerUI) {
this.ipH = emojiStoreV... |
package LeetCode.Problems.medium;
import java.util.*;
public class LongestContinuousSubarrayWithAbsolute {
public static void main(String[] arg0){
System.out.println(getSubstringSize(new int[]{10,1,2,4,7,2},5)); //4
System.out.println(getSubstringSize(new int[]{4,2,2,2,4,4,2,2},0)); //3
... |
/*
* 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.EmployeeDTO;
import dto.UserDTO;
import dto.UserProfileInfoDTO;
import java.sql.Connection;
import java.sql.R... |
package br.usp.memoriavirtual.modelo.fachadas.remoto;
import java.util.Map;
import javax.ejb.Remote;
import br.usp.memoriavirtual.modelo.fachadas.ModeloException;
@Remote
public interface ValidacaoRemote {
public boolean validacaoUnico(String query, Object o,
Map<String, Object> parametros) throws ModeloExcepti... |
package com.tencent.mm.plugin.mmsight.ui;
public interface MMSightRecordButton$d {
void bfj();
}
|
package com.tencent.mm.plugin.bottle.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.FrameLayout;
import android.widget.ImageView;
i... |
package com.yirmio.lockawayadmin.UI;
import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.yirmio.lockawayadmin.R;
public class UsersActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... |
package pages;
import org.openqa.selenium.By;
import other.DriverStart;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.open;
public class JobsTutByStartingPage extends DriverStart {
private static final String URL = "https://jobs.tut.by/";
public void openSta... |
package question2;
/**
* This class uses recursion to find length of a string.
* @author WahabEhsan
*/
public class Question2 {
/**
* Prints the length of string.
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println(length("Question... |
package com.e6soft.form.service;
import com.e6soft.core.service.BaseService;
import com.e6soft.form.model.BaseFormType;
public interface BaseFormTypeService extends BaseService<BaseFormType,String> {
}
|
package chapter06;
public class Exercise06_25 {
public static void main(String[] args) {
System.out.println(convertMillis(555550000));
}
public static String convertMillis(long millis) {
String str="";
long second=millis/1_000;
int currentSecond=(int)(second%60);
int minute=(int)(second/60);
int curre... |
package edu.weber;
import javax.swing.*;
import java.awt.*;
public class DepositWindow extends JFrame {
public DepositWindow(AccountHolder accountHolder)
{
super("Deposit for: " + accountHolder.getAccountNumber());
DepositPanel depositPanel = new DepositPanel(accountHolder);
add(de... |
package foo;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class Engine {
public static void main(String[] args) {
System.out.println("Java Persistence Api 2.2");
System.out.println("EclipseLink 2.5.2");
Sys... |
/*
* 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 problema1;
import java.util.*;
/**
*
* @author Eduardo
*/
public class Problema1 {
/**
* @param args... |
package edu.nju.logic.vo;
import edu.nju.data.entity.Question;
import edu.nju.logic.service.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Created by cuihao on 2016/7/25.
*/
public class QuestionApiVO {
private long questionId;
private long userId;
private String userN... |
package mod.coda.ambients.client.renderer;
import javax.annotation.Nullable;
import mod.coda.ambients.client.model.ModelBird;
import mod.coda.ambients.common.entity.EntityBird;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.en... |
package org.adn.ceiba.ceibarest.bussines.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Optional;
import org.adn.ceiba.ceibarest.adapter.TipoVehiculoAdapter;
import org.adn.ceiba.ceibarest.bussines.ITipoVehiculoBussines;
import org.adn.ceiba.ceibarest.dto.TipoVehiculoDTO;
import org.a... |
package com.tencent.mm.plugin.scanner.util;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.scanner.a.f;
class a$1 implements OnCancelListener {
final /* synthetic */ f mLs;
final /* synthetic */ a mM... |
package ru.otus.adapters.json;
/*
* Created by VSkurikhin at autumn 2018.
*/
import ru.otus.adapters.DataSetAdapter;
import ru.otus.models.DeptEntity;
import javax.json.bind.adapter.JsonbAdapter;
public class DeptEntityJsonAdapter
implements JsonbAdapter<DeptEntity, String>, DataSetAdapter<DeptEntity>
{
@Over... |
package org.study.xml;
import javax.xml.bind.annotation.*;
import java.util.LinkedList;
import java.util.List;
/**
* Created by yur on 28.10.2015.
*/
@XmlRootElement(name = "CellSet")
@XmlAccessorType(XmlAccessType.NONE)
public class HBaseTable {
private List<HBaseRow> rows = new LinkedList<>();
public Lis... |
package demo.dao;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "sys_user")
public class User implements Serializable {
private static final long serialVersionUID = 4543785261816598686L;
@Id
@GenericGenerator(name = "i... |
package com.tencent.mm.plugin.music.ui;
import com.tencent.mm.plugin.music.b.a.c.a;
class MusicMainUI$7 implements a {
final /* synthetic */ MusicMainUI lBe;
MusicMainUI$7(MusicMainUI musicMainUI) {
this.lBe = musicMainUI;
}
public final void co(int i, int i2) {
if (MusicMainUI.l(thi... |
// Sun Certified Java Programmer
// Chapter 6, P469
// Strings, I/O, Formatting, and Parsing
class Animal {
}
|
package gd26.asteroids;
import java.awt.*;
/**
* Shaped object class
*
* Created by gdorwin26 on 3/30/2017.
*/
public class ShapedObject extends GameObject
{
private Vec2D[] vertices;
private double radiusSquared;
public ShapedObject(Vec2D[] vertices)
{
this.vertices = vertices;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.