text stringlengths 10 2.72M |
|---|
package utils;
import data.model.user.Message;
import java.util.*;
public class MockUtilsUserTest {
public final static String MOCK_USER_NAME = "mock_user_name";
public final static String MOCK_FOLLOWED_USER_NAME = "mock_user_followed_name";
public final static String MOCK_MESSAGE_TEXT = "mock_message_t... |
package com.pepel.games.shuttle.web.config;
import org.jboss.seam.faces.event.PhaseIdType;
import org.jboss.seam.faces.rewrite.UrlMapping;
import org.jboss.seam.faces.security.AccessDeniedView;
import org.jboss.seam.faces.security.LoginView;
import org.jboss.seam.faces.security.RestrictAtPhase;
import org.jboss.seam.f... |
package com.example.conroller.qet;
import com.example.model.get.SecondQuery;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.... |
public class TestBank extends Bank {
@Override
public int convert(int value, String from, String to) throws ValueException {
String key = String.format("%s-%s", from, to);
if (currencyHash.containsKey(key))
return (int) Math.round(currencyHash.get(key) * value);
else
... |
package org.vaadin.peter.contextmenu.client;
import org.vaadin.peter.contextmenu.ContextMenu;
import org.vaadin.peter.contextmenu.client.ContextMenuState.ContextMenuItemState;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.EventTarget;
import ... |
package com.taftayani.registration.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import com.taftayani.registration.model.User;
@Controller
public class PageController {
@GetMapping("/registrat... |
package com.kh.jd.work;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kh.jd.lecture.Lecture;
@Service("workService")
public class WorkServiceImpl implements WorkService{
... |
package org.unijac.ingesoft3.ejercicio1;
import org.unijac.ingesoft3.ejercicio1.pojos.Cadete;
import org.unijac.ingesoft3.ejercicio1.pojos.Docente;
import org.unijac.ingesoft3.ejercicio1.pojos.Persona;
import java.util.*;
import java.util.function.Predicate;
/**
* Created by alexhd on 8/19/14.
*/
public class Escu... |
package com.mwi.aws.dynamodb.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class SystemConfig {
private static SystemConfig instance;
private static Properties props ;
public static SystemConfig getInstance() {
if(instance == null) {
instan... |
package com.beike.core.service.trx.impl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import com.beike.common.bean.trx.OrderInfo;
import com.beike.common.bean.trx.PaymentInfoGeneratorAlipay;
import com.beike.common.bean.trx... |
package core;
public interface Expressao {
public double resolver();
}
|
package nlp.utils;
public class Score implements Comparable<Score> {
private int sentenceId;
private double score;
public Score(int sentenceId) {
this.sentenceId = sentenceId;
}
public Score(int sentenceId, double score) {
this.sentenceId = sentenceId;
this.score = score;
... |
package net.acomputerdog.BlazeLoader.api.toolset;
import java.util.HashSet;
import com.google.common.collect.Multimap;
import net.acomputerdog.BlazeLoader.util.reflect.ReflectionUtils;
import net.minecraft.block.Block;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.... |
public class Promotion {
private String promotionCode;
private String endDate;
private double discountAmount;
public Promotion(String promotionCode, String endDate, double discountAmount) {
this.promotionCode = promotionCode;
this.endDate = endDate;
this.discountAmount = discountAmount;
}
... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.atguigu.java5;
interface MyInterface{
void demo();
}
public class InnerClassTest2 {
public static void main(String[] args) {
/*
* 因为该类的对象只是在该方法中使用,所以将该类放入到该方法中更合理
*/
// class MyNewClass implements MyInterface{
//
// @Override
// public void demo() {
// System.out.println("我是demo我就这... |
package com.crossenagetask.model;
/**
* Created by NrapendraKumar on 14-03-2016.
*/
public class Question {
private String question;
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
}
|
package com.prolific.vidmediaplayer.Activities;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import... |
/**
*
*/
package strike.elements;
import java.awt.Color;
import java.awt.Graphics2D;
import resources.ColorSet;
/**
* @author NikitaNB
*
*/
public class Bullet extends Element {
public Bullet(int x, int y) {
super(x, y);
}
@Override
public void draw(Graphics2D grf, int x, int y, int ... |
package org.db1.etetest.services;
import java.sql.Date;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import org.db1.etetest.bom.LogReco... |
package me.levylin.easymemo.ui.main.mvp;
import org.greenrobot.greendao.query.Query;
import java.sql.SQLException;
import java.util.List;
import me.levylin.easymemo.entity.Memo;
import me.levylin.easymemo.entity.MemoDao;
import me.levylin.lib.base.loader.request.DBModel;
/**
* 主界面Model
* Created by LinXin on 2017... |
package serverPackage;
import communication.LogIn;
import communication.User;
import communication.UsersTable;
import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;
/*
this class responsible for manage users log in and log out
and to update their scores in the file
*/
public class UsersManager... |
/**
* This class is generated by jOOQ
*/
package schema.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record5;
import org.jooq.Row5;
import org.jooq.impl.UpdatableRecordImpl;
import schema.tables.TeamsCourseteammember... |
import java.util.Scanner;
public class VowelsCount {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
System.out.println(vowelCounter(input));
}
public static int vowelCounter(String word){
word = word.to... |
package com.dbs.portal.ui.component.view;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public class TimeStampView extends VerticalLayout implements IView {
private SimpleDateFormat dateF... |
/**
* Car
* @author Victor Lourng
* @version 2016
*/
public class Car {
public User owner;
public String make;
public String model;
public int year;
public String color;
public String plate;
public String toString() {
return GetCarInfo();
}
public String GetCarInfo() {
return this.year... |
package com.cheese.radio.ui.user.params;
import com.cheese.radio.base.IkeParams;
/**
* Created by 29283 on 2018/4/13.
*/
public class FabulousParams extends IkeParams {
// 参数名 参数含义 是否必填 生成规则 样例
// method 方法名 是 固定 addFabulous
// token 用户令牌 可选 用户登录或注册后获取
// id 绘本id 是 固定 11
private String method;
... |
package com.example.nutan.mescomplain;
import rx.Observable;
/**
* Created by nutan on 9/21/15.
*/
public interface LoginModel {
Observable<Boolean> authenticate(User userData);
}
|
package com.bnade.wow.service;
import com.bnade.wow.entity.Auction;
import com.bnade.wow.repository.AuctionRepository;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.faster... |
package com;
import javafx.beans.Observable;
import javafx.beans.property.SimpleIntegerProperty;
/**
* Created by Administrator on 2017/07/15.
*/
public class Main12 {
public static void main(String[] args) {
SimpleIntegerProperty xProperty = new SimpleIntegerProperty(0);
// xProperty.addListener... |
package com.ipincloud.iotbj.oa;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.ParseException;
import org.apache.http.client.entity.UrlEncodedFormEntity;
imp... |
package com.sullbrothers.crypto.exchangerates;
import java.util.Date;
public class ExchangeRate {
private String currency;
private String fromCurrency;
private int type;
private String market;
private int flags;
private Double price;
private Date lastUpdate;
private Double las... |
package com.lovi.twr.common.dao.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import com.lovi.twr.common.dao.GenericDao;
import com.lovi.twr.exception.Dat... |
import edu.princeton.cs.algs4.WeightedQuickUnionUF;
public class Percolation {
private final int n;
private final WeightedQuickUnionUF grid;
private final boolean[] sites;
private final int topSite;
private final int bottomSite;
private int numberOfOpenSites = 0;
/**
* Create n-by-n... |
/*
* 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 genthignol;
import genthignol.AuthentificationCode;
import genthignol.Contexte;
import javafx.event.ActionEvent;
import javafx... |
package com.example.android.offline;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.Editable;
import android.text.TextWatcher;
import android.util... |
package org.point85.domain.dto;
import java.util.ArrayList;
import java.util.List;
import org.point85.domain.plant.EntityLevel;
import org.point85.domain.plant.WorkCell;
public class WorkCellDto extends PlantEntityDto {
private List<EquipmentDto> equipment = new ArrayList<>();
public WorkCellDto(String name, Stri... |
package com.adi.ho.jackie.versa_news.RecyclerViewStuff;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.adi.ho.jackie.versa_news.GSONClasses.ViceItemsClass;
import com.adi.ho.jackie.v... |
/*
* Created on 2005-4-6
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.aof.webapp.form.prm.bill;
import java.util.Date;
import com.aof.webapp.form.BaseForm;
/**
* @author CN01458
*
* TODO To change the template for thi... |
package com.project.battle;
import java.awt.event.KeyEvent;
import com.project.KeyInput;
import com.project.LayeredImage;
import com.project.TooltipSelectionID;
public class BattleKeyInput extends KeyInput {
private BattleScreen bs;
public BattleKeyInput(BattleScreen bs) {
this.bs = bs;
}
@Override
public ... |
package com.mycompany.collectorservice.repository;
import com.mycompany.collectorservice.model.News;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
public interface NewsRepository extends ElasticsearchRepository<News, String> {
}
|
package com.learn.apigateway.filter;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtException;
import io.jsonwebtoken.Jwts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.filter.GenericFilterBean;
import javax.servlet.FilterChain;
... |
//package com.jady.retrofitclientserver;
//
//import org.springframework.core.MethodParameter;
//import org.springframework.web.bind.support.WebDataBinderFactory;
//import org.springframework.web.context.request.NativeWebRequest;
//import org.springframework.web.method.support.HandlerMethodArgumentResolver;
//import or... |
package engine;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.strea... |
package br.com.projeto.projeto.projetoempresa.Views;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import br.com.projeto.projeto.projetoempresa.controllers.ControllerFuncionario;
import br.c... |
/*******************************************************************************
* Copyright 2019 See AUTHORS file
*
* 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.apac... |
package com.example.launcherapplication;
import android.app.usage.UsageStats;
import android.app.usage.UsageStatsManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.LauncherApps;
import android.content.pm.PackageManager;
import and... |
package day05;
import java.util.Scanner;
public class UpdateBatch197 {
protected static Scanner input;
public static int n;
public static void main(String[] args) {
// TODO Auto-generated method stub
input = new Scanner(System.in);
System.out.println("Data apa yang akan diperbaharui?");
n = input.next... |
package org.isc.certanalysis.service.util;
import sun.security.pkcs.PKCS9Attribute;
import sun.security.util.ObjectIdentifier;
import sun.security.x509.X500Name;
import java.util.Vector;
/**
* Created with IntelliJ IDEA.
* User: vva
* Date: 21.11.13
* Time: 9:51
* To change this template use File | Settings | F... |
import javax.swing.*;
import java.awt.event.*;
import java.awt.Dimension;
import java.awt.*;
import java.util.*;
public class BucketGame extends JPanel implements KeyListener {
char c;
Bucket bucket1, bucket2;
boolean gameOver;
public BucketGame() {
bucket1 = new Bucket (150, 0, 350);
... |
/*Easy
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and le... |
package pt.utl.ist.bw.test;
import java.io.File;
import java.util.List;
import javax.validation.constraints.AssertTrue;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.Namespace;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import pt.utl.ist.bw.utils.SpecUtils;
import... |
import java.util.Scanner;
/**
* Created by nazhirjackson on 9/9/16.
*/
public class TooSmallTooLarge {
int count = 0;
Scanner ask =new Scanner(System.in);
int num;
public void ask(){
System.out.println("Pick A Numbaaaa any Numbaaa (Between 1 & 10 tho Man)");
num = ask.nextInt();
... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.siokagami.application.mytomato.view;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import com.siokagami.application.mytomato.R;
import com.siokagami.application.mytomato.utils.IntentUtil;
import com.siokagami.application.mytomato.utils.PrefUtils;
import it.neokree.mate... |
import com.sun.javafx.sg.prism.NGShape;
import desmoj.core.dist.ContDistErlang;
import desmoj.core.simulator.Model;
import desmoj.core.simulator.SimProcess;
import desmoj.core.simulator.TimeSpan;
import desmoj.core.statistic.Tally;
import java.util.concurrent.TimeUnit;
/**
* Created by Pedro on 19/04/2015.
*/
publi... |
package format;
import java.math.RoundingMode;
import java.text.NumberFormat;
import java.util.Locale;
public class Test_NumberFormat {
public static void main(String[] args) {
NumberFormat formatador = NumberFormat.getNumberInstance(new Locale("pt", "BR"));
formatador.setMaximumIntegerDigits(10);
for... |
package com.example.ips.export.error;
/**
* @author: Farben
*
* @description: x系统枚举自定义code字典
*
* @create: 2019/8/21-10:14
**/
public enum EmBusinessCode implements CommonError{
//通用错误类型10001
PARAMETER_VALIDATION_ERROR(10001,"参数不合法"),
//系统通用CURD类型
SYSTEM_ADD_SUCCESS(10002," 新增成功"),
SYSTEM_ADD_... |
import java.util.*;
class main
{
public static void main(String[] args)throws InputMismatchException
{
Scanner sc = new Scanner(System.in);
System.out.print("> ");
int n = sc.nextInt(), sum = 0;
int a[] = new int[n];
for(int i = 0; i < n; i++)
{
System.out.print(">> ");
a[i] = sc.nextInt();
su... |
package com.huy8895.dictionaryapi.helper;
public interface SearchHelper<W> {
W search(String word);
}
|
package com.design.pattern.bridge;
/**
* @Author: 98050
* @Time: 2019-02-25 22:10
* @Feature:
*/
public interface Color {
void paint(String shape);
}
|
package ma.mghandi.radeesportail;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;
import android.widget.Toast;
import com.github.mikephil.charting.charts.BarChart;
import com.github.mikephil.charting.componen... |
package no.nav.vedtak.felles.integrasjon.rest;
import java.net.URI;
import java.net.http.HttpRequest;
import java.time.Duration;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Supplier;
import jakarta.ws.rs.core.HttpHeaders;
import ... |
package demo;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
public class Log4jHtmlLayoutTest
{
static Logger log = Logger.getLogger(Log4jHtmlLayoutTest.class);
public static void main(String[] args) {
PropertyConfigurator.configure("./log4j.properties");
lo... |
package edu.ktu.firstapp;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.ImageView.ScaleType;
public class FourthActivity extends AppCompatA... |
package com.project.minor.e_attendance.object;
public class Parent {
private String pname;
private String mno;
private String sid;
private String sname;
private String parentpassword;
private String classs;
public Parent(String pname, String mno, String sid, String sname, String parentpass... |
package udp.multicast;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.image.WritableRaster;
import java.io.*;
import java.net.*;
import java.nio.file.Files;
import javax.imageio.ImageIO;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
/**
*
* @author Sar... |
package org.coresystems.repositories;
import org.coresystems.models.Company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CompanyRepository extends JpaRepository<Company, Integer> {
}
|
package abiguime.tz.com.tzyoutube._commons.customviews;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.ColorDraw... |
package com.sid.notepad;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import and... |
package com.example.firstapp.Myapp.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class MyAppController {
//RequestMapping
@RequestMapping... |
package Views.Inventory;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.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 OTC;
import jade.core.Agent;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import ja... |
package cs455.overlay.wireformats;
import cs455.overlay.routing.*;
import java.io.*;
import java.util.ArrayList;
public class RegistrySendsNodeManifest extends Event {
private ArrayList<RoutingEntry> entries;
public ArrayList<RoutingEntry> getEntries() { return entries; }
private Integer[] allN... |
package DataStructures.arrays;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
class MaxWeightPossible {
public static double maxWeightPossible(int maxWt, double wt[], int val[], int n) {
double result[][] = new double[n + 1][maxWt + 1];
for (int i = 0; i <= n... |
/*
* 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 cuborubiks.model;
import cuborubiks.controller.PantPrincipalController;
import cuborubiks.util.Xform;
import javafx.animation.... |
package com.example.nelson.karaoke;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.media.MediaPlayer;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
... |
package com.mingrisoft;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JTe... |
/*
* Copyright 2019 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package org.carlook.gui.windows;
import com.vaadin.server.VaadinSession;
import com.vaadin.ui.*;
import org.carlook.model.objects.dao.AutoDAO;
import org.carlook.model.objects.entities.User;
import org.carlook.services.util.Roles;
public class ConfirmationWindow extends Window {
public ConfirmationWindow(String... |
package com.example.gerenciamentodesalas.ui.activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import ... |
package cn.itheima.day_07.Student;
public class StudentTest {
public static void main(String[] args) {
Student student1 = new Student();
Student student2;
student1.setName("张三");
student1.setAge(22);
System.out.println(student1);
System.out.println("stu1: " + student1.getName());
System.out.println... |
package by.htp.les02.main;
public class SixthTask {
public static void main(String[] args) {
int a = 45;
int b = 45;
int c;
int summ = 180;
int ab;
String notExist = "Треугольник не существует";
String exist = "Треугольник существует";
Boolean m = true;
c = summ - a - b;
ab = a + ... |
package com.gxtc.huchuan.data.deal;
import com.gxtc.commlibrary.data.BaseRepository;
import com.gxtc.huchuan.bean.FlowListBean;
import com.gxtc.huchuan.http.ApiCallBack;
import com.gxtc.huchuan.ui.deal.liuliang.FlowContract;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.... |
package training.gamelessormore;
/**
* Interface that contains global values
*
* @author Hurt Yevhenii
*/
public interface GlobalConstants {
//The constants
int LEFT_BOUND = 0;
int RIGHT_BOUND = 100;
}
|
package py.edu.unican.facitec.formulario;
import java.awt.BorderLayout;
import java.awt.Event;
import java.awt.EventQueue;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;... |
package com.example.mohammad_aldraye_180162;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android... |
package com.theshoes.jsp.board.model.dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import com.theshoes.jsp.board.model.dto.BoardDTO;
import com.theshoes.jsp.common.paging.SelectCriteria;
public class BoardDAO {
/* 공지사항 */
/* 공지사항 목록 전체 조회 */
public List<BoardDTO> selectAl... |
package com.cjkj.insurance.entity;
public class Invoiceinfo {
/**
* 发票信息
*/
private Integer invoiceinfoId;
/**
* 用户ID
*/
private Integer userId;
/**
* car_info-ID
*/
private Integer carInfoId;
/**
* 发票类型,0-增值税普通发票,1-增值税专用发票
*/
private String in... |
package edu.caltech.cs2.datastructures;
import edu.caltech.cs2.interfaces.IGraph;
import edu.caltech.cs2.interfaces.ISet;
public class Graph<V, E> extends IGraph<V, E> {
ChainingHashDictionary<V, ChainingHashDictionary<V, E>> vertices;
public Graph(){
vertices = new ChainingHashDictionary<>(MoveToFr... |
package xyz.xindoo.re.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class State {
protected static int idCnt = 0;
protected int id;
protected int stateType;
public State() {
this.id = idCnt++;
}
public Map<String, Li... |
package fr.aresrpg.tofumanchou.domain.data.map;
import fr.aresrpg.dofus.structures.item.Interractable;
import fr.aresrpg.tofumanchou.domain.data.entity.Entity;
import java.util.Set;
/**
*
* @since
*/
public interface Cell {
int getId();
int getX();
int getY();
boolean isInterractable();
Interractable g... |
/*
* 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.legado.grupo.srv;
//librerias
import com.legado.grupo.dao.GrupoDAO;
import com.legado.grupo.dao.MiembroDAO;
imp... |
package com.zxt.compplatform.codegenerate.service;
import java.util.List;
import com.zxt.compplatform.codegenerate.entity.EngCodeLog;
import com.zxt.compplatform.codegenerate.util.CodeGenerateException;
import com.zxt.compplatform.formengine.entity.view.BasePage;
/**
* 代码生成业务层
* @author zxt-hejun
* @date:2010-9-19... |
package cn.xeblog.xechat.utils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.HashMap;
import java.util.Map;
/**
* 敏感词树节点
*
* @author yanpanyi
* @date 2019/4/4
*/
@Getter
@Setter
@ToString
public class SensitiveWordNode {
/**
* 节点所代表的字符
*/
private char k... |
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
public class ... |
package ssbn.test;
public class StaticSub extends StaticSuper{
public static String staticGet(){
return "Derived staticGet()";
}
public static String staticdynamGet(){
return "Derived staticdynamGet()";
}
}
|
package com.design.pattern.builderDemo;
/**
* 作者:zhouliang
* 时间:2017/10/27:10:52
* 邮箱:18510971680@163.com
* 说明:抽象Builder类
*/
public abstract class Builder {
public abstract Builder setBoard(String board);
public abstract Builder setDisplay(String display);
public abstract Builder setOs(String os);
... |
package io.qtechdigital.onlineTutoring.controller.web;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.messaging.handler.annotation.DestinationVariable;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.Se... |
/*
* 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 practica1_201413473;
/**
*
* @author Maynor Garcia 201413473
*/
public class practica1_201413473 {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.