text
stringlengths
10
2.72M
package com.example.user.kurswork; import android.app.AlarmManager; import android.app.DatePickerDialog; import android.app.PendingIntent; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.database.Cursor...
import dataFactory.DataFactory; import dataFactory.HotelDataHelper; import dataFactory.impl.DataFactoryImpl; import dataServiceImpl.HotelDataServiceImpl; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import po.HotelInfoPO; import java.util.Map; /** * HotelDataService...
package models; public class Utente { private String nome; private String cognome; private String email; private String pass; private int saldo; private String image; private boolean active; public boolean isActive() { return active; } public void setActive(boolean active) { this.active = a...
package nobile.riccardo.harbour; public interface CalcolaIndiceP { int calcolaIndiceP(); }
package com.cdkj.util; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import java.util.UUID; /** * JFinal2.0文件上传重命名策略 * * @author L.cm * email: 596392912@qq.com * site:http://www.dreamlu.net * date 2015年7月10日下午11:23:25 */ public class UpFileRenamePolicy { public static Stri...
package com.radauer.mathrix.types; import com.radauer.mathrix.GroupKey; /** * Allows an API user to implement a Factory for GroupKeys based on its own group or column types */ public interface GroupKeyFactory<T> { GroupKey getGroupKey(T specificGroupKey); }
/* $Id$ */ package djudge.exceptions; public class DJudgeXmlCorruptedException extends DJudgeXmlException { private static final long serialVersionUID = 1L; }
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2011 INRIA/University of * Nice-Sophia Antipolis/ActiveEon ...
/* * 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 scheduling; import java.awt.Dialog; import java.util.ArrayList; import javax.swing.JFrame; import static scheduling.AddGenerat...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
package collection; import java.util.PriorityQueue; import java.util.Queue; public class QDemo { public static void main(String[] args) { Queue<Integer>q= new PriorityQueue<>(); for(int i =5;i>=0;i--) { q.add(i); } System.out.println(q); for(int i=0;i<=5;i++) { System.out.println(q.remove()); ...
package net.inveed.rest.jpa.typeutils; import com.fasterxml.jackson.annotation.JsonProperty; import net.inveed.commons.reflection.BeanPropertyDesc; import net.inveed.commons.reflection.ext.IBeanPropertyExtension; public class JsonPropertyExt implements IBeanPropertyExtension { private final BeanPropertyDesc beanPro...
package com.fm.scheduling.service; import com.fm.scheduling.dao.*; import com.fm.scheduling.domain.*; import com.fm.scheduling.exception.SchedulingException; import java.sql.SQLException; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZonedDateTime; import java.u...
package com.example.mathpractice; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class SubtractionActivity extends AppCompatActivity { private Button lvlOneBtn; private Button lvlTwoBtn; ...
public class PostfixExpressionCalculator implements Visitor { private GenericListBasedStack<Operand> glbs; public PostfixExpressionCalculator() { glbs = new GenericListBasedStack<>(); } @Override //Integers public void visit(Operand e) { glbs.push(e); } @Override //+,*,/...
package com.redsun.platf.dao; import com.redsun.platf.dao.base.IPagedDao; import com.redsun.platf.entity.account.AccountResources; import com.redsun.platf.entity.account.AccountRole; import com.redsun.platf.entity.account.Authority; import com.redsun.platf.entity.account.UserAccount; import com.redsun.platf.entity.sys...
import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTextField; import javax.swing.JLabel; import javax.swing.JButton; import javax.swing.JScrollPane; import javax.swing.JTextPane; import java.awt.ev...
package pl.edu.uj.fais.amsi.gfx; import java.awt.Graphics2D; import java.awt.Polygon; import java.awt.Color; import pl.edu.uj.fais.amsi.bio.Bacteria; import pl.edu.uj.fais.amsi.bio.MapObject; import pl.edu.uj.fais.amsi.bio.Worm; import pl.edu.uj.fais.amsi.main.Game; /** * * @author Michal Szura & Bartosz Bereza */...
package com.mahang.weather.ui.fragment; import com.mahang.weather.base.BaseFragment; public class AirFragment extends BaseFragment { @Override public void notifyDataSetChanged() { // TODO Auto-generated method stub } }
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
/** */ package CFG; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Var</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link CFG.Va...
/* * 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 ppro.modelo; import java.io.Serializable; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped;...
/* * Copyright 2002-2016 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 mvc.controller; import mvc.model.User; public class UserController { private User user; public UserController() { } public User getUser() { user = new User(); user.setName("user1"); user.setAge(5); return user; } }
package com.qx.wechat.comm.sdk.request.query; import com.qx.wechat.comm.sdk.request.msg.PassiveMsgType; public class RobotGroupMembersQuery extends BasicQuery{ /** * */ private static final long serialVersionUID = -5952023410986951767L; private String robot_wxid; // 是否刷新列表,0 从缓存获取 / 1 刷新并获取 private Str...
package com.eegeo.mapapi.buildings; import android.graphics.Point; import com.eegeo.mapapi.geometry.LatLng; /** * Options used to construct a BuildingHighlight object. */ @SuppressWarnings("WeakerAccess") public final class BuildingHighlightOptions { /** * @eegeo.internal */ enum SelectionMode ...
package exercicio05; import java.util.ArrayList; public interface Ferramentas { public ArrayList<Animal> filtraEspecie ( ArrayList<Animal> completo , String especieFiltrar ); public ArrayList<String> classificaEspecies ( ArrayList<Animal> completo ) ; }
package com.XJK.pojo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Article { public Long id; public String title; public String putTime; public String introduct; ...
package crux; import java.io.IOException; import crux.Token.Kind; public class Parser { private Scanner scanner; private Token current; private ErrorReport error; private SymbolTable symbolTable; public Parser(Scanner scanner) { this.scanner = scanner; this.error = new ErrorReport(); ...
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
package multipliersimulation; /** * @author Kiyeon * Kyle Del Castillo * CS 147 - Homework 2 * Multiplication Simulator */ public class MultiplierSimulation { public static void main(String[] args) throws Exception { //4-bit signed numbers are from -8 to +7 byte[] multiplierArray = { ...
class Solution { public boolean containsDuplicate(int[] nums) { Set set = new HashSet(); //重複確認用 for(int duplicateCheck : nums) { if(!set.add(duplicateCheck)) { //System.out.println(duplicateCheck); return true; } } re...
package liu.java.nio.channels.classes; public class Test { }
package com.volvobuses.client.serviceImpl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.volvobuses.client.bean.GenTbBuseseventos; import com.volvobuses.client.dao.GenTbBuseseventosMapper; import com.volvobuses...
package slimeknights.tconstruct.library.fluid; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.capability.FluidTankProperties; import net.minecraftforge.fluids.capability.IFluidHandler; import net.minecraftforge.fluids.capability.IFluidTankProperties; import net.minecraftforge.fluids.capa...
package shop; import gui.GUIApplication; import shop.ShopGUI; public class ShopGUI extends GUIApplication { private ShopScreen shop; public static void main(String[] args) { ShopGUI s = new ShopGUI(960,540); Thread runner = new Thread(s); runner.start(); } public ShopGUI(int width, int...
package com.drivetuningsh.constant; import lombok.Getter; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Locale; @Getter public enum AppConstant { DEFAULT_LOCALE(Locale.ENGLISH), DEFAULT_ENCODING(StandardCharsets.UTF_8); private Locale locale; private Ch...
package view; import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel...
package com.praktyki.log.web.message.models; import org.springframework.lang.Nullable; import java.time.LocalDate; import java.util.Objects; public class ScheduleCalculationEventModel { public int id; public double capital; public String installmentType; public int installmentAmount; public doubl...
package com.jwebsite.dao; import java.util.List; import com.jwebsite.vo.Special; public interface SpecialDao { //添加专题 public void insertSpecial(Special special) throws Exception; //查询所有专题 public List<Special> quaryAllSpecial() throws Exception; //删除一条记录 public void delOneSpecial(int SpecialID) throws Exceptio...
package net.b07z.sepia.server.mesh.server; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.b07z.sepia.server.core.data.Role; import net.b07z.sepia.server.core.tools.FilesAndStreams; import net.b07z.sepia.server.core.t...
package chapter_8; import static org.junit.jupiter.api.Assertions.*; import java.math.BigDecimal; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class SavingsAccountTest { SavingsAccount yourSavings; SavingsAccount mySavings; @BeforeEach void ...
package fr.centralesupelec.sio.model; /** * Define the characteristics of a Person. */ public abstract class Person { // Only name was implemented in a first time, next step would have been to add an id. private String name; public String getName() { return name; } public void setName( String name ...
package org.nistagram.campaignmicroservice.data.dto; import java.io.Serializable; public class FollowingStatusDto implements Serializable { private String following; private String notifications; private boolean muted; private boolean blocked; public FollowingStatusDto() { } public Follo...
package com.wrathOfLoD.Models.Items; import com.wrathOfLoD.Models.Commands.EntityActionCommands.PickUpItemCommand; import com.wrathOfLoD.Models.Entity.Character.Character; import com.wrathOfLoD.Models.Entity.Entity; import com.wrathOfLoD.Observers.ModelObservers.DestroyableModelObserver; import com.wrathOfLoD.VisitorI...
package com.EvilNotch.silkspawners; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TreeMap; import com.EvilNotch.silkspawners.entity.MinecartMobSpawner; import com.EvilNotch.silkspawne...
package com.encdata.corn.niblet.security; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.Maps; import org.keycloak.adapters.HttpClientBuilder; import org.keycloak.adapters.KeycloakDeployment; import org.keycloak.adapters.authent...
package eu.test.dropwizard.dao; import com.codahale.metrics.annotation.Metered; import com.codahale.metrics.annotation.Timed; import com.google.common.base.Optional; import eu.test.dropwizard.model.Person; import io.dropwizard.hibernate.AbstractDAO; import org.hibernate.SessionFactory; import java.util.List; public ...
package com.example.alex.allthewage; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; //FIREBASE AUTH import com.google.firebase.auth.FirebaseAuth; public class MainActivity extends Activity { Button rButto...
import java.util.*; public class PermutationCounts { private long MOD = 1000000007; private int MN = 1000000; private long[] factorials; private long[] invFactorials; public int countPermutations(int N, int[] pos) { factorials = new long[N + 1]; factorials[0] = 1; for(int i...
//MJ Keegan 15170756 public class Course2 { private String courseName; private String[] students = new String[100]; private int numberOfStudents; public void Course(String courseName) { this.courseName = courseName; } /** Adds the name of the students to the array of students and increments...
package com.thepoofy.website_searcher.csv.writer; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.List; import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.dataformat.csv.CsvMapper; import com.fasterxml.jackson.dataformat...
package models.converter;//package models.converter; // //import javax.persistence.AttributeConverter; //import javax.persistence.Converter; //import java.time.LocalDateTime; //import java.time.ZoneOffset; // //@Converter(autoApply = true) //public class LocalDateTimeConverter implements AttributeConverter<Loca...
package br.com.saulofarias.customerapi.repository; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.jupiter.api.Assertions.assertEquals; import java.text.ParseException; import java.util.Arrays; import java.util.List; import org.junit.Test; import org....
package com.pointinside.android.app.widget; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Point; import android.graphics.Rect; import android.graphics.drawable.An...
package Interface; /** * Created by YZQ on 2017-04-24. */ public class Login { public void lo(){ System.out.println("dfjdlkjfgkjglkfd"); System.out.println("dlkjfgdgjfkjgkfitutytytuyty"); System.out.println("sfjdkjfk"); } }
package com.es.core; import com.es.core.model.order.Order; import com.es.core.model.order.OrderItem; import com.es.core.model.phone.Phone; import com.es.core.model.phone.Stock; import org.junit.Assert; import java.util.Iterator; import static junit.framework.TestCase.assertEquals; public class TestUtils { publ...
package cn.mldn.util.factory; import cn.mldn.util.ResourceUtil; import cn.mldn.util.service.ServiceProxy; public class Factory { private static ResourceUtil DAO_RESOURCE = new ResourceUtil("cn.mldn.resource.dao") ; private static ResourceUtil SERVICE_RESOURCE = new ResourceUtil("cn.mldn.resource.service") ; ...
// Team Name: Charity (Kimberly Atienza, Joesph Bingham, Keith Horace, Darren Johnson, Ryan Parker, Alexander Partain, Emiley Smith, Kenton Wilhelm) // Date: 4/25/18 // Assignment: TIMELOCK // compile in linux: "javac TimelockFinal.java" // run in linux: "java TimelockFinal < epoch.txt" // where epoch.txt has ...
package com.corneliouzbett.mpesasdk.enums; public enum Mode { PROD, TEST }
package com.example.databasefinal; import android.app.Application; import android.arch.lifecycle.AndroidViewModel; import android.arch.lifecycle.LiveData; import android.support.annotation.NonNull; import android.util.Log; public class UpdateProductViewModel extends AndroidViewModel { private String TAG = this.g...
package com.mingrisoft; public class MaxMin { public static class Result { private double max; private double min; public Result(double max, double min) { this.max = max; this.min = min; } public double getMax() { re...
package edu.barrons.tran.don; import java.util.ArrayList; import java.util.List; import edu.jenks.dist.barrons.*; public class Sentence extends AbstractSentence{ public static void main(String arg[]) { Sentence what = new Sentence(" s"); System.out.println(what.countWords()); String[] arr = what.getW...
package com.sda.company.controller; import com.sda.company.components.CustomFakerCompany; import com.sda.company.model.Company; import com.sda.company.service.CompanyService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bi...
package byow.Core; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import edu.princeton.cs.algs4.Stopwatch; public class AStarSolver<Vertex> implements ShortestPathsSolver<Vertex> { private ArrayHeapMinPQ<Vertex> fringe; // private ArrayList<Double> distTo; // private ArrayList<...
package com.dzf.crm.workbench.service.impl; import com.dzf.crm.settings.dao.UserDao; import com.dzf.crm.settings.domain.User; import com.dzf.crm.vo.PaginationVo; import com.dzf.crm.workbench.dao.ActivityDao; import com.dzf.crm.workbench.dao.ActivityRemarkDao; import com.dzf.crm.workbench.domain.Activity; import com.dz...
import java.io.*; import java.util.*; class stringconcat { public static void main(String[] args) { Scanner kb=new Scanner(System.in); String str=kb.next(); String str1=kb.next(); if(str.length()<1001&&str1.length()<1001) System.out.println(str+str1); } }
package ru.timxmur.test.tochka.service; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import ru.timxmur.test.tochka.domain.*; import ru.timxmur.test.tochka.repository.RuleRepository; import ru.timxmur.test.tochka.rep...
package com.ajhlp.app.integrationTools.util; /** * 操作结果key * @author ajhlp * */ public class OperResultKey { public static final String OPER_SUCCESS_KEY = "success"; public static final String OPER_RESULT_MSG_KEY = "msg"; public static final String QUERY_RESULT_COUNT_KEY = "total"; public...
package com.lenovohit.bdrp.org.dao; import java.util.List; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.SpringApplicationConfiguration...
import java.io.*; public class Second implements Serializable { int id; String name; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.na...
package com.madrun.springmongo.model; import java.util.List; import org.springframework.data.mongodb.core.mapping.Document; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @Document @NoArgsConstructor public class SocialMediaInfo { List<SocialMedi...
package alien4cloud.rest.deployment; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.Authorization; import java.util.Map; import javax.inject.Inject; import org.springframework.http.MediaType; import org.springframework.security.access.prepost.PreAuthoriz...
package com.binfan.davantitest.model; import com.binfan.davantitest.model.asset.Page; import retrofit.http.GET; /** * Created by Bin on 28/3/2016. * An interface for retrofit to request and parse data */ public interface IModelRestService { /** * for retrofit to request data * @return Page include ...
package com.dadastory; import java.io.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @Author:chenda * @Date:2021/7/20 15:07 */ public class Maven_Tools { private static final Properties properties = new Properties(); static { try { File fil...
package caris.framework.tokens; import java.time.LocalDateTime; import java.util.List; import java.util.Optional; import com.vdurmont.emoji.Emoji; import sx.blah.discord.api.IDiscordClient; import sx.blah.discord.api.IShard; import sx.blah.discord.api.internal.json.objects.EmbedObject; import sx.blah.discord.handle....
/* * @(#) XmlDsigInfoDAO.java * Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved. */ package com.esum.wp.ebms.xmldsiginfo.dao.impl; import java.util.List; import com.esum.appframework.dao.impl.SqlMapDAO; import com.esum.appframework.exception.ApplicationException; import com.esum.wp.ebms.xmldsiginfo.dao....
package com.egswebapp.egsweb.dto.request; import javax.validation.constraints.NotBlank; public class PostRequestDto { @NotBlank(message = "title may not be empty") private String title; @NotBlank(message = "description may not be empty") private String description; @NotBlank(message = "short t...
package Client.view.view_ra; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JTextField; import Client.api.Profille; import Client.api.RA; public class PRegistration extends JPanel { JText...
package br.com.wasys.gfin.cheqfast.cliente.endpoint; import br.com.wasys.gfin.cheqfast.cliente.dataset.DataSet; import br.com.wasys.gfin.cheqfast.cliente.model.ProcessoModel; import br.com.wasys.gfin.cheqfast.cliente.model.ProcessoRegraModel; import br.com.wasys.gfin.cheqfast.cliente.model.TransferenciaModel; import r...
package cn.study.crawler.src.proxy.pool; import java.util.ArrayList; import java.util.List; public abstract class UrlPaseHandle { public static List<IPMessage> ipMessages=new ArrayList<>() ; abstract void parseInitPage(String url); }
// 이범석 // 20171664 // HW8 // Inheritance public abstract class Shape { protected Point position; public Shape() { this(new Point(0,0)); } public Shape(Point pt) { this.position = pt; } /*setMethod*/ public void setPostion(Point l) { this.position = l; } /*getMethod*/ public Point getPostion() { r...
package ffm.slc.model.enums; /** * An indication of the type of Title I program, if any, in which the student is participating and served. */ public enum TitleIPartAParticipantType { PUBLIC_TARGETED_ASSISTANCE_PROGRAM("Public Targeted Assistance Program"), PUBLIC_SCHOOLWIDE_PROGRAM("Public Schoolwide Program"), P...
package com.megathrone.tmall.controller; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.megathrone.tmall.pojo.Order; import com.megathrone.tmall.service.OrderItemService; import com.megathrone.tmall.service.OrderService; import com.megathrone.tmall.util.Page; import org.spr...
/* * 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.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; impo...
/* * 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 ImpresionDocumentos; import static Formuarios.Inicio.Pane1; import Formularios_Maestro_empleados.IncioMaestro; import java.awt...
package exercise2; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Modifier; public class MyClassReflection { public void printAllMethods() { Class<?> clazz = MyClass.class; while (clazz != null) { System.out.println(String.format("Класс [ %...
package com.github.sedubois.factorization.presentation; import com.github.sedubois.factorization.FactorizationTask; import com.github.sedubois.factorization.service.FactorizationService; import javax.inject.Inject; import javax.inject.Singleton; import io.vertx.core.Vertx; import io.vertx.core.json.Json; import io.v...
package org.gavrilov.domain; import javax.annotation.Nonnull; import javax.persistence.*; import javax.persistence.Entity; import java.util.List; @Entity @Table(name = "user_role") public class UserRole extends org.gavrilov.domain.Entity { @Column(name = "rolename", nullable = false) private String rolename; ...
package edu.rit.se.reichmafia.htmleditor; /** * Hello world! * */ public class HTMLEditor { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
package org.point85.domain.file; import java.io.File; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import org.point85.domain.collector.CollectorDataSource; import org.point85.domain.collector.DataSourceType; import org.point85.domain.dto.FileSourceDto; @Entity @DiscriminatorValue(Da...
package khosbayar.hs.com.droidpheramor.activities; import androidx.fragment.app.FragmentActivity; import khosbayar.hs.com.droidpheramor.R; import android.content.Intent; import android.os.Bundle; import android.view.View; public class MainActivity extends FragmentActivity { @Override protected void onCreate...
package mockito; public class AuthService { private AuthDao dao; // some code... public boolean isLogin(String id) { boolean isLogin = dao.isLogin(id); if (isLogin) { // some code... System.out.println("Login success"); } return isLogin; } }
package david.socket_communication_rpi; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Color...
package com.myneu.project.pojo; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name="OrderTable") public class Order { @Id @Gener...
package com.example.chordnote.ui.collectcomments; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.example.cho...
/* * Copyright 2016 TeddySoft Technology. All rights reserved. * */ package tw.teddysoft.gof.abstractFactory; public class LinuxProcess extends Process { public LinuxProcess(int id){ super(id); } }
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
package com.angular.angular.service; import com.angular.angular.dto.UserDto; public interface UserService { /** * Create new user * @param userDto Object * @return userDto */ UserDto createUser(UserDto userDto); }
/** * Jonathan Aguirre, 14349 * Yosemite Melendez, 14413 * Delbert Custodio, 14246 * * * Se siguieron las instrucciones indicadas en comentarios */ import java.io.*; import java.util.Scanner; class WordTypeCounter { public static void main(String[] args) throws Exception { if(args.length > 1) { // D...