text stringlengths 10 2.72M |
|---|
package com.bucares.barcode.repository;
import java.util.Optional;
import com.bucares.barcode.model.Profesor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource
public interface ProfesorRepository extends ... |
package org.idea.plugin.atg.navigation;
import com.intellij.codeInsight.navigation.GotoTargetHandler;
import com.intellij.codeInsight.navigation.NavigationUtil;
import com.intellij.icons.AllIcons;
import com.intellij.lang.properties.psi.PropertiesFile;
import com.intellij.lang.properties.psi.impl.PropertiesFileImpl;
i... |
package sapronov.pavel.managementrestapi;
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.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import models.Expense;
import models.Group;
import models.Split;
import models.User;
import services.BillSharingOrchestrator;
public class Driver {
public static void main(String[] args) {
User u1 = new User("u1", "dinesh", "d@abc.com", "... |
package com.jiudianlianxian.property;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;
/**
*
* @Title: Person
* @Description: 使用p名称空间实现属性注入和复杂数据的注入
* @Company: 济宁九点连线信息技术有限公司
* @ProjectName: spring_day01
* @author fupengpeng
* @date 2017年9月14日 上午... |
package com.sporsimdi.action.facadeBean;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import com.sporsimdi.action.facade.TelefonFacade;
i... |
package com.tencent.mm.plugin.appbrand.jsapi;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.l;
import com.tencent.mm.ab.v.a;
import com.tencent.mm.plugin.appbrand.jsapi.JsApiUploadWeRunData.UploadMiniAppStepTask;
import com.tencent.mm.sdk.platformtools.x;
class JsApiUploadWeRunData$UploadMiniAppStepTask$1 impl... |
package com.cxjd.nvwabao.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.text.TextPaint;
import android.view.Gravity;
import andr... |
package com.deltastuido.order.domain;
import java.io.Serializable;
import javax.persistence.*;
import com.deltastuido.project.Project;
import com.deltastuido.store.domain.Sku;
import com.deltastuido.store.domain.Spu;
import java.math.BigDecimal;
/**
* The persistent class for the user_order_sku database table.
* ... |
package com.example.demo.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.model.Application;
import com.example.demo.model.Candidate;
import com.example.demo.model.Job;
/**
* @author ${Prashanth Thipparthi}
*/
/*
* This class contains functions wh... |
package com.espendwise.manta.web.util;
import com.espendwise.manta.util.AppResourceHolder;
import com.espendwise.manta.util.ApplicationSettings;
import com.espendwise.manta.util.Constants;
import com.espendwise.manta.util.IOUtility;
import com.espendwise.manta.util.alert.DisplayMessage;
import com.espendwise.manta.ut... |
package com.ibm.ive.tools.japt.reduction.ita;
import com.ibm.jikesbt.BT_Field;
/**
* @author sfoley
*
* Represents a field.
*
* As an object propagator, it propagates objects to method invocations.
* It propagates to methods that read from this field.
*/
public class FieldInstance extends DataMe... |
package questions.BuddyStrings_0859;
/*
* @lc app=leetcode.cn id=859 lang=java
*
* [859] 亲密字符串
*
* https://leetcode-cn.com/problems/buddy-strings/description/
*
* algorithms
* Easy (27.15%)
* Likes: 66
* Dislikes: 0
* Total Accepted: 8.6K
* Total Submissions: 30.9K
* Testcase Example: '"ab"\n"ba"'
... |
/*
* 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 model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persis... |
package com.galadar.example.stockxchange;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
/**
* This class is only for setting and retrievi... |
/*
* 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 saumiko
*/
public class Window extends javax.swing.JFrame {
/**
* Creates new form Window
*/
pub... |
/**
* ************************************************************************
* Copyright (C) 2010 Atlas of Living Australia All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* Licens... |
package pp_fp06.pizza_restaurant.enums;
public enum Ingredient_Type {
ANIMAL, VEGETAL, MINERAL;
public static String IngredientTypeToString(Ingredient_Type type) {
switch (type) {
case ANIMAL:
return "This Ingredient is Animal Type";
case VEGETAL:
... |
package inter;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.PriorityQueue;
/**
* Created by joetomjob on 9/2/18.
*/
public class GaneshAmazon {
List<List<Integer>> nearestXsteakHouses(int totalSteakhouses, List<List<Integer>> allocations, int numSteakhouses) {... |
package com.catnap.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created with IntelliJ IDEA.
*
* @author... |
package pro.eddiecache.ioc.context;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import pro.eddiecache.ioc.context.exception.BeanCreateException;
import pro.eddiecache.ioc.context.exception.PropertyException;
@SuppressWarnings("un... |
package com.tencent.mm.plugin.sns.ui.a;
import android.util.DisplayMetrics;
import android.util.Pair;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewStub;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import ... |
package com.enat.sharemanagement.security.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoun... |
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.World;
abstract public class SpriteObject extends Sprite {
public World world;
public Body body;
public PlayScreen screen;
pu... |
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android... |
package tree;
/**
* Create by coldwarm on 2018/9/19.
* 通过中序和先序或者中序和后序我们就可以确定一颗二叉树
*/
public class TreeNode {
private TreeNode lefTreeNode;
private TreeNode rightTreeNode;
private int value;
public static void main(String[] args) {
TreeNode treeNode1 = new TreeNode(10);
TreeNode tr... |
package com.lolRiver.status;
import com.lolRiver.Skeletor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframe... |
//mvn exec:java -Dexec.mainClass=”bgu.spl171.net.impl.TFTPtpc.TPCMain” -Dexec.args=”8888”
package bgu.spl171.net.impl.packets;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.uti... |
package org.icabanas.jee.api.integracion.dao;
import org.hamcrest.core.IsEqual;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.internal.verification.VerificationModeFactory;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader... |
import com.sun.org.apache.regexp.internal.RE;
import java.util.HashMap;
import java.util.Map;
/**
* Created on 2020/2/23.
*
* @author ray
*/
public class MyPow {
private Map<Integer, Double> cacheMap = new HashMap<>();
public double myPow(double x, int n) {
if (n == 0) {
return 1;
... |
package com.cartshare.s3;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Date;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.... |
package pl.cwanix.opensun.authserver.packet.s2c.auth;
import org.apache.commons.lang3.ArrayUtils;
import pl.cwanix.opensun.authserver.packet.AuthServerPacketOPCode;
import pl.cwanix.opensun.commonserver.packets.Packet;
import pl.cwanix.opensun.commonserver.packets.annotations.OutgoingPacket;
import pl.cwanix.opensun.u... |
package com.e6soft.bpm.model;
import java.io.Serializable;
import com.e6soft.core.model.Model;
public class Flowlink implements Serializable,Model<String> {
private static final long serialVersionUID = 1L;
private String id;
private String name;
private String sorceNode;
private String targetNode;
priva... |
package com.tencent.mm.plugin.cdndownloader.b;
import com.tencent.mars.cdn.CdnLogic;
import com.tencent.mm.modelcdntran.b;
import com.tencent.mm.modelcdntran.i;
import com.tencent.mm.modelcdntran.j;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class a$1 implements Runnable {
... |
package hibernate.jpa.tableClass;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Guitars {
@Id
private int guitarId;
private String description;
private String brand;
private int price;
public Guitars() {
}
public Guitars(String description, String brand, int price) ... |
package org.firstinspires.ftc.teamcode;
import android.graphics.Color;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.hardware.DistanceSensor;
import com.qualcomm... |
package de.unidue.langtech.teaching.rp.os.reader;
import static org.junit.Assert.assertEquals;
import org.apache.uima.collection.CollectionReaderDescription;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.JCasIterable;
import org.apache.uima.fit.util.JCasUtil;
... |
package com.tencent.mm.plugin.luckymoney.ui;
import android.os.Bundle;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.luckymoney.b.i;
import com.tencent.mm.plugin.luckymoney.b.z;
import com.tencent.mm.plugin.wxpay.a$i;
import com.tencent.mm.plugin.wxpay.a.f;
import com.tencent.mm.plugin.wxpay.a.g;
import com... |
package br.edu.ifpb.followup.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Transie... |
package zxn.domain;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
public class Cart implements Serializable{
private Map<String, CartItem> items = new HashMap<String, CartItem>();
private int num;
private float price;
public Map<String, CartItem> getItems() {
return items;
}
pub... |
package com.hly.o2o.enums;
public enum LocalAuthStateEnum {
LOGINGFAIL(-1,"用户名或者密码输入有误"),SUUCESS(0,"操作成功"),NULL_AUTH_INFO(-1006,"注册信息为空"),
ONLY_ONE_ACOUNT(-1007,"最多只能绑定一个账号");
private int state;
private String stateInfo;
private LocalAuthStateEnum(int state,String stateInfo){
this.state=state;
this.stateInfo=... |
package user;
public interface UserManagement extends GeneralUserManagement, AttendeeManagement, AdminManagement {
}
|
package com.freejavaman;
import android.widget.CheckBox;
import android.widget.CompoundButton;
//處理CheckBox點選事件的物件
public class CheckBoxListener implements CheckBox.OnCheckedChangeListener {
GeneActivity papa;
//取得Activity物件之參考值
public CheckBoxListener(GeneActivity papa) {
this.papa = papa;
}
//使用者點選Chec... |
import java.io.*;
import java.util.*;
/**
* 138. Copy List with Random Pointer
*/
class Solution {
public Node copyRandomList(Node head) {
Map<Node, Integer> map = new HashMap<>();
Node fakeHead = new Node(-1), p = head, q = fakeHead;
List<Node> newNodes = new ArrayList<>();
int i... |
package kdgs.kdgroup.activity;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.widget.CardView;
import android.text.Html;
import android... |
package ru.kappers.service.impl;
import com.google.common.base.Preconditions;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transac... |
package fotoshop.Filter;
import fotoshop.ColorImage;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComponent;
/**
* <div>Derived from the suggestions made in "Objects First with Java" by Michael
* Kolling and David Ba... |
package org.idea.plugin.atg.completion;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementPresentation;
import com.intellij.lang.properties.psi.impl.PropertiesFileImpl;
import org.idea.plugin.atg.util.AtgComponentUtil;
import org.jetbrains.annotations.NotNull;
i... |
package com.miliyo.danmaku.control.dispatcher;
import com.miliyo.danmaku.DanMuChannelInfo;
import com.miliyo.danmaku.model.DanMuModel;
import com.miliyo.danmaku.model.channel.DanMuChannel;
/**
* Created by android_ls on 2016/12/7.
*/
public interface IDanMuDispatcher {
void dispatch(DanMuModel iDanMuView, DanM... |
package com.simoncomputing.app.helloworld.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.simoncomputing.app.helloworld.entity.Message;
import com.simoncomputing.app.helloworld.repository.MessageRepository;
@Ser... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.presenter.impl.uom.model;
import net.nan21.dnet.core.api.annotation.Ds;
import net.nan21.dnet.core.api.annotation.DsField;
import net.nan21.d... |
/*
* 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.javagym.daos.sale;
import com.javagym.daos.AbstractDao;
import com.javagym.daos.sale.SaleDao;
import com.javagym.entities.... |
package com.huawei.shiro.jwt.web.service;
import com.huawei.shiro.jwt.domain.UserInfo;
public interface UserService {
public UserInfo getUser(String username);
public void insertUser(UserInfo user);
} |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DbConnection;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
im... |
package com.appc.report.service.impl;
import com.appc.report.dao.UserDao;
import com.appc.report.model.User;
import com.appc.report.service.UserService;
import org.springframework.stereotype.Service;
/**
* UserServiceImpl
*
* @version : Ver 1.0
* @author : panda
* @date : 2017-9-14
*/
@Service
public clas... |
package com.yc.biz;
import java.util.List;
import java.util.Map;
import com.netflix.infix.lang.infix.antlr.EventFilterParser.boolean_expr_return;
import com.yc.bean.Goods;
import com.yc.model.PageBean;
/**
*
* 商品类
* @author adeline
* @date 2018年8月28日
* @TODO
*/
public interface GoodsBiz {
/... |
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
/**
* Project 6: Order a breakfast
*/
public class Breakfast extends JFrame {
JCheckBox omelet;... |
package ch.ubx.startlist.server;
import static org.junit.Assert.fail;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class TestUtil {
private static SimpleDateFormat timeFormat = new SimpleDateFormat("dd.MM.yyyy HH:mm z");
static {
ti... |
package cn.com.ykse.santa.repository.entity;
public class RequirementFileCfgDO {
private Integer cfgId;
private Integer requirementId;
private Integer fileId;
public Integer getCfgId() {
return cfgId;
}
public void setCfgId(Integer cfgId) {
this.cfgId = cfgId;
}
pub... |
package cn.canlnac.onlinecourse.data.entity;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* 学习记录列表.
*/
public class LearnRecordListEntity {
@SerializedName("total")
private int total;
@SerializedName("learnRecords")
private List<LearnRecordEntity> learnRecords;
... |
package com.paytechnologies.cloudacar;
import com.viewpagerindicator.CirclePageIndicator;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager.LayoutParam... |
package bancoSantander.model;
public class ContaPoupanca extends Conta {
private final static double taxaJuros = 0.1;
public ContaPoupanca( Cliente cliente) {
super(cliente);
}
public double getTaxaJuros() {
return taxaJuros;
}
@Override
public double saque(double valor)... |
/*
* Copyright (C) 2015 Miquel Sas
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is d... |
package com.waes.backend.dto;
import com.waes.backend.model.User;
import java.time.LocalDate;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor(access = Acces... |
package tsubulko.entity;
import javafx.beans.InvalidationListener;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ChangeListener;
import javafx.be... |
package com.pangpang6.books.offer.chapter2;
public class P44_TwoArrayFind {
public boolean Find(int target, int[][] array) {
//边界条件判断
if (array == null || array.length == 0 ||
array[0] == null || array[0].length == 0)
return false;
//获取函数矩阵的行数 m 与列数 n
int... |
package org.yggard.brokkgui.internal;
import org.yggard.brokkgui.paint.EGuiRenderPass;
/**
* @author Ourten 5 oct. 2016
*/
public interface IGuiRenderer
{
void beginPass(EGuiRenderPass pass);
void endPass(EGuiRenderPass pass);
void beginDrawing(EGuiRenderMode mode, boolean texture);
default void ... |
package ch.fhnw.oop2.module07.ab3;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Slider;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.util.converter.NumberStringConverter;
final class EventHandler extends VBox {
private TextField ... |
package com.facebook.react.touch;
public interface ReactInterceptingViewGroup {
void setOnInterceptTouchEventListener(OnInterceptTouchEventListener paramOnInterceptTouchEventListener);
}
/* Location: C:\Users\august\Desktop\tik\df_rn_kit\classes.jar.jar!\com\facebook\react\touch\ReactIntercepti... |
package cn.jboa.service;
import java.util.Map;
import org.hibernate.criterion.DetachedCriteria;
import cn.jboa.common.Page;
import cn.jboa.entity.Leave;
public interface LeaveService {
public void saveLeave(Leave leave) throws Exception;
public void deleteLeaveById(Long id) throws Exception;
public void updateLe... |
package com.sinata.rwxchina.component_entertainment.utils;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.sinata.rwxchina.component_basic.car.activity.CleanCarActivity;
import com.sinata.rwxchina.component_basic.finefood.activity.FoodActivity;
import com.sinata.rwx... |
package game.player.role.data;
public class RoleData {
}
|
package com.example.demo;
import com.example.demo.application.model.user.Privilege;
import com.example.demo.application.model.user.Role;
import com.example.demo.application.model.user.User;
import com.example.demo.application.repository.UserRepository;
import com.example.demo.security.jwt.TokenProvider;
import io.json... |
package com.mybatis.interceptor.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mybatis.interceptor.entity.Player;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Map;
/**
* @author yi
* @ClassName PlayerMapper
* @Description TODO
* @Date
**/
public... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package factorioMain;
import org.newdawn.slick.Animation;
public class WireCrafter extends Furnace{
public WireCrafter(Animation animation, String name) {
super(animation, name);
this.rotable = false;
}
@Override
public boolean IsValidEntity(Entity e) {
switch(e.getName()) {
case "Copper... |
package com.mobpartner.sample;
import com.mobpartner.android.publisher.views.MobPartnerAdBanner;
import com.mobpartner.android.publisher.views.MobPartnerAdInterstitial;
import com.mobpartner.android.publisher.views.MobPartnerAdListener;
import com.mobpartner.android.publisher.views.MobPartnerMobStream;
import com.mobp... |
import java.util.Scanner;
public class HumanPlayer extends player
{
/*
public int blockInput()
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter block to input your symbol: ");
int state = sc.nextInt();
return state;
}*/
}
|
package com.brain.apps;
class SingleTon{
private static SingleTon obj;
private SingleTon() {
System.out.println("Cons Call");
}
static SingleTon getObject(){
if(obj==null) {
obj = new SingleTon();
}
return obj;
}
}
public class SingletonDemo {
public static void main(String[] args) {
SingleTon s1 ... |
package com.tool.util.image;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.media.ExifInterface;
import android.os.Environment;
import android.util... |
public class Chiffre
{
public static void main( String[] args )
{
String clair = "Bonjour mon général";
String chiffre = decale( clair, 10 );
System.out.println( chiffre );
System.out.println( decale( chiffre, -10 ) );
}
static String decale( String message, int decalage )
{
// String -> char[]
ch... |
package dev.tsuyo.hello;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;
import com.google.gson.Gson;
import com.sun.net.httpserver.HttpServer;
public class HelloWorld {
public void start(int port) {
try {
... |
package com.locadoraveiculosweb.modelo;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Entity
@NamedQueries({
@NamedQuery( name = "Fabricante.findAll",
query = "select f from Fabricante f... |
package customer.gajamove.com.gajamove_customer.utils;
import android.app.NotificationManager;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.os.Environment;
import android.util.Log;
import com.google.android.gms.maps.model.LatLng;
import ... |
package vo;
import java.io.Serializable;
public class Book implements Serializable {
private int id;
private String authors = "";
private String title = "";
private int year;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
... |
package com.butyter.contact.core.db.dao;
import java.util.List;
import com.butyter.contact.core.db.model.Contact;
public interface ContactDAO {
List<Contact> getAllContacts();
Contact getContactById(int id);
void deleteContact(int id);
int createContact(Contact contact);
void updateContact(... |
package org.inftel.socialwind.server.services;
import static org.inftel.socialwind.server.domain.DomainContext.requestBegin;
import static org.inftel.socialwind.server.domain.DomainContext.requestFinalize;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.inftel.socialwind.server.d... |
package se.sjv.happyblueberry.models;
public class Vara {
private double price;
private String type;
private int amount;
public Vara(){
}
public Vara(final String type){
this.type = type;
}
public void setPrice(final double price) {
this.price = p... |
package com.ibrahim.androidTask.Fragments.Upload.View;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.La... |
package com.tkb.elearning.dao;
import java.util.List;
import com.tkb.elearning.model.JoinNotice;
/**
* 加入會員須知Dao介面接口
* @author Admin
* @version 創建時間:2016-04-25
*/
public interface JoinNoticeDao {
/**
* 加入會員須知清單(分頁)
* @param pageCount
* @param pageStart
* @param joinNotice
* @return List<JoinN... |
package Utilities;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.*;
import java.util.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class Excel_IO {
static XSSFRow row;
public Excel_IO(){
}
/*
... |
package two;
/**
* thinking in java 2.11练习题9
* 自动包装功能对所有基本类型和包装器类型都起作用
* 自动包装,自动拆装
* */
public class Task_2_11_9 {
public static void main(String[] args) {
//int
int i=1;
Integer in=new Integer(i);
//float
//char
char c='c';
Character ch=new Character(c);
//double
double d=5.88;
D... |
package com.bodansky.videochat.config;
/*
* Created by Adam Bodansky on 2017.04.05..
*/
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
i... |
package com;
import java.io.Serializable;
import java.util.Iterator;
import java.util.LinkedList;
public class Lifter implements Serializable {
private String flag = "";
private LifterState state = LifterState.STOP;
private int topfloor = 100;
private int bottomfloor = 1;
private int currentfloor = ... |
package com.hybridia.engine3D.renderEngine;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import com.hybr... |
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
int min = Integer.MAX_VALUE;
public int minDepth(TreeNode root) {
if(root == null)
return 0;
... |
package org.codehaus.mojo.exec;
import org.apache.maven.plugin.logging.Log;
import java.io.PrintStream;
/**
* a Simple Maven Log that outputs to a Stream
*/
class StreamLog implements Log
{
static final int DEBUG = 0;
static final int INFO = 1;
static final int WARN = 2;
static final int ERROR = ... |
import greenfoot.*;
import java.awt.geom.Point2D;
import java.util.LinkedList;
import java.util.HashSet;
/**
* Write a description of class CameraViewableWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public abstract class CameraViewableWorld extends World
{
private int camX... |
/**
* Starting point for the program.
* @author Sanket Chandorkar
*/
public class Driver {
public static void main(String[] args) throws Exception {
if(args.length == 1 && args[0].equalsIgnoreCase("help")){
Driver.helpMsg();
}
if(args.length != 3){
System.out.println("Argument Missing !!");
Drive... |
package bgu.spl171.net.impl.packets;
public class LOGRQPacket implements Packet {
private String username;
public LOGRQPacket(String username) {
this.username = username;
}
public String username(){
return username;
}
@Override
public short opCode() {
return 7;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.