text stringlengths 10 2.72M |
|---|
package notepad;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.text.DefaultEditorKit;
public class NoteJFrame extends javax.swing.JFrame {
/**
... |
package com.example.mercaya;
import androidx.appcompat.app.ActionBar;
import android.os.Bundle;
import android.widget.ImageSwitcher;
import android.widget.ImageView;
import android.widget.ViewSwitcher;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import ja... |
/*
* 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 jade;
/**
*
* @author AFRIZAL
*/
import jade.core.Agent;
import jade.core.behaviours.TickerBehaviour;
public class JADE e... |
package pl.finapi.paypal.output.pdf.element;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;... |
package privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.framework.context;
import android.content.Context;
import privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.framework.persistence.DB;
public class InstanceFactoryForTests extends AbstractInstanceFactory
{
public InstanceF... |
package xyz.mijack.blog.csdn.model;
import android.content.Context;
import xyz.mijack.blog.csdn.R;
/**
* Created by MiJack on 2015/4/16.
*/
public class CategoryList {
private static final Category[] categories = new Category[]{
new Category(R.string.category_mobile, "mobile"),
new ... |
package com.revature.resources;
import static com.revature.utils.LogUtil.logger;
import java.io.IOException;
import java.net.URI;
import javax.persistence.NoResultException;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
... |
package com.infotecsjava.keyvalue.repository;
import com.infotecsjava.keyvalue.model.KeyValueModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/*
* Класс, описывающий репозиторий для хранения пар ключ-значение
* Наследуется от JpaRepositor... |
package com.deepak.dynamic;
public class Quicksort {
public int[] quicksort(int[]a,int start, int end){
int pivot;
if(start<end){
pivot=pivoting(a,start,end);
a=quicksort(a,start,pivot-1);
a=quicksort(a,pivot+1,end);
}
return a;
}
publ... |
package com.jk.jkproject.ui.inter;
import com.jk.jkproject.ui.entity.LiveGiftInfoBean;
public interface LiveGiftSvgaAnimListener extends LiveRelease {
void addTimes(LiveGiftInfoBean.DataBean paramLiveGiftResponse);
boolean isRunning();
void startAnim(LiveGiftInfoBean.DataBean paramLiveGiftResponse);
}
|
package ai;
import game.TextOutput;
import java.util.*;
import state.Initialisable;
import util.*;
public class MinMaxAi extends AI {
/**
* Class to hold the alpha and beta values
*/
private class PruneValues
{
public PruneValues(double alpha, double beta)
{
this.alpha = alpha;
this.beta = beta;
... |
package com.smxknife.java2.nio.channel;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.util.concurrent.TimeUnit;
/**
* @author smxknife
* 2020/10/2
*/
public class _13_FileChannel_FileLock_2 {
public static void main(String[] args... |
package test;
import publisher.PublishModel;
import subscription.SubscriptionCallback;
public class DataBucketListner implements SubscriptionCallback {
public static final String ref = "DataBucketListner";
@Override
public void configUpdate(PublishModel publishModel) {
System.out.println("Config... |
package com.zhangyanye.didipark.activity;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
im... |
package android.support.v7.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
public final class ap {
public final TypedArray Ww;
private final Context mContext;
public static ap a(Context context, At... |
package edu.metrostate.ics372.thatgroup.clinicaltrial.android.clinicactivity;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.BasePresenter;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.statemachine.ClinicalTrialState;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.statemachi... |
package com.sinata.rwxchina.component_aboutme.adapter;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
imp... |
package com.flutterwave.raveandroid.di.modules;
import com.flutterwave.raveandroid.francMobileMoney.FrancMobileMoneyUiContract;
import javax.inject.Inject;
import dagger.Module;
import dagger.Provides;
@Module
public class FrancModule {
private FrancMobileMoneyUiContract.View view;
@Inject
public Fran... |
package com.yjp.demo.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @ClassName: indexController
* @Description: TODO
* @author: v_jpyin
* @date: 2020/6/5
*/
... |
package projection;
import utility.Point2D;
import utility.Ray;
public abstract class Projection
{
public abstract Ray createRay(Point2D point);
}
|
package com.sinotao.business.dao.entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 检查项目信息表
* @author 佟磊
*/
@Table(name = "t_clinicar_check_item")
public class ClinicarCheckIte... |
package com.tencent.mm.ui.tools;
class PressImageView$1 implements Runnable {
final /* synthetic */ PressImageView uBj;
PressImageView$1(PressImageView pressImageView) {
this.uBj = pressImageView;
}
public final void run() {
this.uBj.setPressed(false);
this.uBj.invalidate();
... |
package edu.john.practice.singleton;
/**
* 第二种:慢性子式 1/3
* (延迟创建这个实例对象)
* 1.构造器私有化
* 2.类当中用一个静态变量来保存唯一实例
* 3.提供一个静态方法来,获取这个实例对象
*
* 线程不安全(适合单线程)
* @author John
* @date 8/24/2020 1:35 AM
*/
public class Singleton4 {
private static Singleton4 instance;
private Singleton4(){}
public static Singleto... |
package pro.mickey.spring.data.util;
import java.io.Serializable;
import org.hibernate.HibernateException;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.id.IdentifierGenerator;
public class IdGenerator implements IdentifierGenerator {
public String id;
public Se... |
package com.rofour.baseball.common;
import java.io.IOException;
import java.text.SimpleDateFormat;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonSeriali... |
package com.sunny.token.response;
import lombok.Getter;
/**
* 响应CODE
*/
public enum ResponseCode{
SUCCESS("0000", "成功"),
ERROR("9999","异常"),
TOKEN_IS_NULL("4001", "TOKEN 为空"),
NO_LOGIN("4002", "您还没有登录"),
;
ResponseCode(String code, String message){
this.code = code;
this.mes... |
package com.responsyve.codegen.domain;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
impor... |
package com.example.mifareclassicreader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import com.example.mifareclassicreader.CustomAdapter;
import com.example.mifareclassicreader.MainActivity;
import com.example.mifareclassicreader.Sector;
import android.support.v7.app.Act... |
package com.example.vcv.ui.calendar;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.exa... |
package com.javaex.ex01;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class BuffedStramApp {
public static void main(St... |
/*
* Copyright (C) 2020-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... |
package com.stackedtalent.portal.service;
import com.stackedtalent.portal.entity.CandidateEmployment;
import java.util.List;
public interface CandidateEmploymentService {
List<CandidateEmployment> getEmploymentListByCandidateId(Long candidateId);
}
|
package com.zhowin.miyou.recommend.adapter;
import androidx.annotation.NonNull;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhowin.base_library.model.UserLevelInfo;
import com.zhowin.base_library.model.UserRankInfo;
import com.zhowin.base_libr... |
package com.ibm.order.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class OrderDetails {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id... |
package ducksim.goose;
import java.awt.Color;
import ducksim.behaviors.FlyBehavior.FlyBehavior;
import ducksim.behaviors.FlyBehavior.FlyWithWings;
import ducksim.behaviors.QuackBehavior.NormalQuack;
import ducksim.behaviors.QuackBehavior.QuackBehavior;
public class Goose {
public static final FlyBehavior FLY_BEH... |
/*
* Copyright 2008 Eckhart Arnold (eckhart_arnold@hotmail.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... |
package com.home.test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.orientechnologies.common.util.OCallable;
import com.orientechnologies.orient.core.intent.OIntentMassiveInsert;
import com.orientechnologies.orient.core.metadata.schema.OClass;
import com.orientechnologies.orient.c... |
package soduku.main;
public class Coordinates {
int row;
int column;
Coordinates(int column, int row){
this.row = row;
this.column = column;
}
public String toString(){
return "Row "+this.row+" - column "+this.column;
}
}
|
package com.cyberwith.service;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.widget.Toast;
import androidx.annotation.Nullable;
public class MyService extends Service implements MediaPlayer.OnCompletionListener {
MediaPlaye... |
package boj;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
public class BOJ_1987_알파벳 {
private static int R;
private static int C;
private static int max;
pri... |
package capeonato;
import java.sql.*;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @author danielmora
*/
public class Ingresar_Jugadores extends javax.swing.JFrame {
DefaultTabl... |
package com.lzh.net.handler;
import java.util.ArrayList;
import java.util.List;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.ne... |
package com.tencent.mm.plugin.appbrand.jsapi.f.a;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.view.View;
import android.view.ViewGroup;
import com.tencent.mm.kerne... |
package replicatorg.drivers.commands;
import replicatorg.drivers.Driver;
import replicatorg.drivers.RetryException;
public class DisableFan implements DriverCommand {
int toolhead = -1; ///lazy auto-detect tool
public DisableFan() {}
public DisableFan(int toolhead)
{
this.toolhead = toolhead;
}
@Overr... |
package com.hikki.sergey.montecarlo.component;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.support.v7.widget.LinearLayoutCompat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
public class Divider ... |
package io.github.vibrouter.hardware;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import java.util.HashSet;
import java.util.Set;
public class RotationSensor implements SensorE... |
package com.research.api.table;
import org.apache.flink.core.fs.Path;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.Table;
import org.apache.flink.table.api.TableEnvironment;
import org.apache.flink... |
package IB;
import java.util.ArrayList;
/**
* Created by joetomjob on 3/8/18.
*/
public class TreeTraversalRecursive {
public void inorderTraversal1(TreeNode a, ArrayList<Integer> res){
if(a==null) {
return;
}
inorderTraversal1(a.left,res);
res.add(a.val);
in... |
package vegoo.stockcommon.db.redis.hq;
import java.text.ParseException;
import java.util.Date;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.cm.ManagedService;
import ... |
package com.infogen.rpc_client;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.google.protobuf.InvalidProtocolBufferException;
import com.infogen.rpc.header.X_HttpHeaderNames;
import com.infogen.structure.map.LRULinkedHashMap;
import io.netty.buffer.ByteBuf;
/**
* @au... |
import javax.swing.*;
public class Eje17 {
public static void main(String[] args) {
int num = Integer.parseInt(JOptionPane.showInputDialog("Numero:"));
if (num % 2 == 0) {
System.out.println("Es Par");
} else {
System.out.println("Es Impar");
}
... |
package com.bloomberg.server.arithmeticservice.businesslogic;
import com.bloomberg.server.arithmeticservice.businesslogic.exceptions.ExpressionBuildException;
import com.bloomberg.server.arithmeticservice.businesslogic.exceptions.ExpressionSolverException;
import com.bloomberg.server.arithmeticservice.businesslogic.in... |
/**
* @author André Pinto
*
* Esta classe garante que a pergunta que o chatbot não respondeu não foi vazia
*/
package br.com.fiap.ston.bo;
public class PerguntaNaoRespondidaBO {
public boolean incluir(String pergunta) {
if(pergunta.length() > 0) {
return true;
}
return false;
}
}
|
package java_Map;
import java.util.*;
//KeySet()返回一个映射关系的Set.
public class Maptest1 {
public static void main(String[] args) {
//创建Map集合.
Map<String,String> map = new HashMap<String ,String>();
map.put("01", "jaker");
map.put("02", "Lucy") ;
map.put("03", "corder");
//Set有迭代器Iterato... |
package com.tencent.mm.plugin.fingerprint.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.widget.CheckBox;
class FingerPrintAuthTransparentUI$10 implements OnClickListener {
final /* synthetic */ FingerPrintAuthTransparentUI jhl;
final /* synt... |
/*
* Created by IntelliJ IDEA.
* User: Vaibhav
* Date: 23-Mar-20
* Time: 7:06 PM
*/
package problem5.node;
import problem5.student.Student;
// to define node properties
public class Node {
private Student data;
private problem3.node.Node next;
public Node(Student data) {
this.data = data... |
package com.issCollege.po;
import java.io.Serializable;
/**
* standardsample
* @author
*/
public class Standardsample implements Serializable {
/**
* 标准样品表自增主键 id
*/
private Long standardsampleId;
/**
* 标准样名称
*/
private String standardsampleName;
/**
* 标准样品类型
*/... |
package de.codingchallenge;
import de.codingchallenge.main.Application;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.skyscreamer.jsonassert.JSONAssert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.w... |
package com.demo.test.tenc;
public class TestBigNumber {
static int numberA = 1243462314;
static int numberB = 1343545632;
private static int add(int a, int b, boolean position) {
int sum = 0;
boolean addPosition = false;
if (position) {
if (a + b + 1 <= 9 && a + b + ... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* BOperationLinkId generated by hbm2java
*/
public class BOperationLinkId implements java.io.Serializable {
private String opuid1;
private String opuid2;
private String operlinktype;
public BOperationLinkId() {
}
pub... |
package zajecia.cwiczenie1;
public class Product {
private String name;
private Producer producer;
private double price;
private boolean isAvailable;
public Product(String name, Producer producer, double price, boolean isAvailable) {
this.name = name;
this.producer = producer;
... |
package alg;
import java.util.Comparator;
import java.util.TreeSet;
public class BestSolutions {
private TreeSet<PairBest> arbol;
private static final int MAX_SOLS = 10;
public BestSolutions(){
arbol = new TreeSet<>();
}
public void addSolution(PairBest sol){
arbol.add(sol);
if(arbol.siz... |
package LinkedList;
/**
* @author admin
* @version 1.0.0
* @ClassName mergeTwoLists.java
* @Description 合并两个有序链表
* 首先,我们设定一个哨兵节点 prehead ,这可以在最后让我们比较容易地返回合并后的链表。我们维护一个 prev 指针,
* 我们需要做的是调整它的 next 指针。然后,我们重复以下过程,直到 l1 或者 l2 指向了 null :
* 如果 l1 当前节点的值小于等于 l2 ,我们就把 l1 当前的节点接在 prev 节点的后面同时将 l1 指针往后移一位。
* 否则,我们对 l... |
package org.kuali.mobility.tours.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence... |
package ba.bitcamp.LabS06D05;
public class TicTacToeGUI {
}
|
package com.example.patienttracker;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
... |
package jneiva.hexbattle.comum;
public class MaquinaEstado {
protected Estado estadoAtual;
protected boolean travarEstado = false;
protected boolean emTransicao;
public Estado getEstado() {
return estadoAtual;
}
public <T extends Estado> void mudarEstado(T estado) {
transicao(estado);
}
protected... |
package sample.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* klasa model majaca na celu odwzorowac dane adresowe
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Address {
private String country;
private String voivodeship;
... |
package apniKaksha;
public class BitwiseOperator {
public static void main(String[] args)
{
int a=5;
int b=13;
/*int c=a|b; //OR operation
int d=a&b; //AND operation */
int c=b<<2; //Left shift 1101 -->110100 ==> 32+16+4=52
int d=b>>2; //Right shift 1101 -->0011 ==> 3
System.out.p... |
package com.robotarm.core.arduino;
import com.robotarm.RobotArm;
import com.robotarm.core.executable.Task;
import com.robotarm.util.Helper;
import org.ardulink.core.Link;
import org.ardulink.core.events.CustomEvent;
import org.ardulink.core.events.CustomListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory... |
package me.zhongmingmao.fallback;
import org.springframework.cloud.netflix.zuul.filters.route.ZuulFallbackProvider;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.client.ClientHttpResponse;
import org.s... |
package ba.bitcamp.LabS10D02;
/**
* Class Priority Queue Integer
*
* @author nermingraca
*
*/
public class PriorityQueueInt {
private Node head;
private Node tail;
/**
* Constructor of object Priority Queue Int
*/
public PriorityQueueInt() {
head = null;
tail = null;
}
/**
* Method inserts n... |
package sling.gsoc.david.operation;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.ann... |
/*
* @Author : fengzhi
* @date : 2019 - 04 - 17 10 : 57
* @Description :
*/
package nowcoder_leetcode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
public class p_6 {
// 用循环实现后续遍历二叉树
public ArrayList<Integer> postorderTraversal(TreeNode root) {
... |
package com.goldgov.gtiles.core.web.freemarker.model;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.goldgov.gtiles.core.Keys;
import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.Templ... |
package iks.pttrns.collections;
public interface Menu {
java.util.Iterator createIterator();
}
|
package generadorcv;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class GeneradorCV {
public static void main(String[] args) {
try {
String linea = "";
... |
/*
* 文 件 名: SpringUtil.java
* 版 权: qieyigoo Technologies Co., Ltd. Copyright YYYY-YYYY, All rights reserved
* 描 述: <描述>
* 修 改 人 创建人
* 修改时间: 2015年11月13日
* 跟踪单号: <跟踪单号>
* 修改单号: <修改单号>
* 修改内容: <修改内容>
*/
package com.nemo.api.services.tools;
import java.util.Locale;
im... |
/*
* Copyright 2013 JBoss Inc
*
* 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 i... |
package com.jasoftsolutions.mikhuna.service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.jasoftsolutions.mikhuna.util.InternetUtil;
/**
* Created by Hugo on 26/02/2015.
*/
public class InternetBroadcastReceiver extends BroadcastReceiver {
... |
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet implements Runnable
{
String msg="hai hello";
public void init()
{
Thread t=new Thread(this);
t.start();
}
public void run()
{
for(;;)
{
for(int i=msg.length();i>=0;i--)
{
msg=msg.substring(0,i);
repaint();
try
... |
package MatriculaEstudiantes;
import java.util.Objects;
public class Materias {
String nombre;
public Materias(String nombre) {
this.nombre = nombre;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = n... |
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the... |
package br.com.helpdev.quaklog.entity;
import br.com.helpdev.quaklog.entity.vo.ConnectStatus;
import br.com.helpdev.quaklog.entity.vo.GameTime;
import lombok.*;
@ToString
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
public class PlayerStatus {
private final GameTime time;
private final ... |
public class Nesting
{
public static void main(String args[])
{
Large ob = new Large(2,3);
ob.disp();
}
} |
package View.GUISistemaDeMenu;
import Model.SistemaDeInventario.GestorInventario;
import Model.SistemaDeMenu.GestorDeMenu;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;
public class GUISistemaDeMenu{
public GUISistemaDeMenu() {
}
public void menuChef() throws IOExc... |
package com.lachesis.anroid.apprtcx.share;
/**
* 一般常量类
*
* Created by Robert on 2017/9/19.
*/
public class Constants {
public static final String SP_KEY_SERVER_HOST = "KEY_SERVER_HOST";
}
|
package Tugas;
public class Manusia {
public void bernafas(){
System.out.println("Manusia Bernafas");
}
public void makan(){
System.out.println("Makan");
}
}
|
package com.mx.profuturo.bolsa.web.controller.recruitment;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.LinkedList;
import com.mx.profuturo.bolsa.configuration.TokenService;
import com.mx.profuturo.bolsa.model.interview.InterviewAvailableHoursRequestDTO;
import com.mx.pr... |
package es.uma.sportjump.sjs.dao.test.util;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import es.uma.sportjump.sjs.dao.daos.ExerciseBlockDao;
import es.uma.sportjump.sjs.model.ent... |
package parser.parsertables;
import parser.syntax.Syntax;
import java.util.Hashtable;
public class LRParserTables extends LRPrimitiveTables {
public LRParserTables(Syntax syntax)
throws ParserBuildException {
super(syntax);
}
protected LRSyntaxNode createStartNode(Nullable nullabl... |
package logicaDeNegocio;
public class Apl {
public static void main(String[] args) {
// TODO Auto-generated method stub
String a = "2019-11-11 20:00:00";
System.out.println(DateTimeManager.fixHour(a));
}
}
|
package com.snab.tachkit.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
* Created by Ringo on 08.08.2015.
*/
public class AutoHeightImageView extends ImageView {
public AutoHeightImageView(Context context, AttributeSet attrs) {
super(conte... |
package com.example.alumnos.enemyappv2;
import android.os.Bundle;
import android.support.annotation.NonNull;
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.Ar... |
package techokami.lib.integration;
import buildcraft.api.tools.IToolWrench;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
public class Integration {
private boolean bcLoaded = false;
public Integration() {
... |
package kevin.jugg.order_service.service;
import kevin.jugg.order_service.domain.ProductOrder;
/**
* @Description:订单业务类
* @Author: Kevin
* @Create 2020-01-09 18:17
*/
public interface ProductOrderService {
/**
* 下单接口
*
* @param userId
* @param productId
* @return
*/
ProductOr... |
package backend;
import lombok.*;
import java.util.ArrayList;
@Data
public class OpenWeather {
private ArrayList<Weather> weather = new ArrayList<>();
private Main main;
private Wind wind;
private String name;
@Data
class Weather {
private String description;
}
@Data
clas... |
package com.anchor.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Context;
public abstract class BaseResource {
@Context
protected HttpServletRequest request;
@Context
protected HttpServletResponse response;
}
|
package herencia;
/**
*
* @author OHMASTER
*/
public class Herencia {
public static void main(String[] args) {
Dog doguno = new Dog();
doguno.LlenarDatosPerro();
doguno.VerSalida();
Dog dogdos = new Dog();
dogdos.LlenarDatosPerro();
dogdos.VerSalida();
... |
package com.stackroute.activitystream.servicesbackend.dao;
import java.util.List;
<<<<<<< HEAD
import com.stackroute.activitystream.servicesbackend.model.Circle;
=======
import com.stackroute.activitystream.ServicesBackEnd.model.Circle;
//Why one method is public and others are default
>>>>>>> 510ac28f9ce32f7248135f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.