text
stringlengths
10
2.72M
import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public Class loginauth extends HttpServlet { PreparedStatement ps,ps1; Connection c; public void init(ServletConfig config) { /*try { Class.forName("oracle.jdbc.driver.OracleDriver"); ...
package com.java.practice.datastructure.linkedlist; import java.util.Arrays; import java.util.List; public class SortedArrayToBalancedBST { public static void main(String[] args) { List<Integer> values = Arrays.asList(1, 2, 3, 4, 5, 6); TreeNode root = sortedArrayToBST(values); traverseInorder(root); } pr...
package com.show.comm.utils.ext; import com.show.comm.utils.StringUtils; /** * 生成随机目录 * * @author HeHongxin * @date 2014-2-10 * */ public class FileFolderRuleRandom extends FileFolderRule { private int length = 0; /** * 生成随机字符文件目录 * * @param 当前时间毫秒13位数字 */ public FileFolderRu...
package com.metoo.module.weixin.view.action; import java.math.BigInteger; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import javax.servlet.http.Cookie; import javax.servlet.http.Ht...
package com.mobiquityinc.packer; import com.mobiquityinc.exception.APIException; /** * Class to represent a Package Item. It holds the index, weight and cost of a single * package item. * @author Lucas Henrique Vicente <lucashv@gmail.com> */ public class PackageItem { private static final double MAX_ITEM_WEIG...
package com.ants.theantsgo.tools; /** * App中的一些常量 * * @author Txunda_HZj * <p> * 2017年4月8日下午1:43:27 */ public class ConstantUtils { /** * 微信支付App_id wxaed69e76fe603aa8 */ public static final String APP_ID = "wxaed69e76fe603aa8"; public static final String...
package org.giddap.dreamfactory.leetcode.onlinejudge; /** * https://oj.leetcode.com/problems/evaluate-reverse-polish-notation/ * <p/> * Evaluate the value of an arithmetic expression in Reverse Polish Notation. * <p/> * Valid operators are +, -, *, /. Each operand may be an integer or another * expression. * <p...
package co.sblock.users; import java.util.Collection; import java.util.HashMap; /** * Represents canon Classes, including those of mythological roles. * * @author FireNG, Jikoo */ public class UserClass { private static final HashMap<String, UserClass> REGISTRY = new HashMap<>(); static { REGISTRY.put("bar...
package rbtc.control; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import...
package com.meizu.scriptkeeper.schedule; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONType; import com.alibaba.fastjson.serializer.SerializerFeature; import java.util.ArrayList; import java.util.Calendar; import java.util.List; /** * ...
package orm.integ.eao; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java....
package io.haitaoc.service.impl; import com.github.pagehelper.PageHelper; import io.haitaoc.mapper.UserMapper; import io.haitaoc.model.User; import io.haitaoc.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import tk.mybatis.mapper.enti...
package com.atguigu.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.atguigu.dao.UserDao; import com.atguigu.dao.UserDaoImpl; public class ValidUs...
package GTEs; import java.io.File; import java.io.IOException; import java.net.DatagramSocket; import java.net.SocketException; /** * manages datagram sockets: aliveSignalEmitter and SchedulerListener * @author babz * */ public class EngineManager implements Runnable { private int tcp; private int udp; privat...
package yedamOracle.com; import java.util.Scanner; public class Rec2 { public static void main(String[] args) { Scanner sr = new Scanner(System.in); double i = sr.nextDouble(); //입력 받을 변수(i)를 선언하고 //System.out.(tr.getArea(i)); 를 쓴다 Rec tr = new Rec(1,3); tr.getArea(); // void 값 찍어냄 ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Enumeration; //import static java.lang.System.out; import java.util.EnumSet; /** * * @author rm */ public class MainClass { public static void main(String[] args) { //to showw ...
package chartsGenerators; import hadoopManager.SingleUrlGenerator; import java.awt.BasicStroke; import java.awt.Color; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.logging.Logger; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.j...
/* * Estrazioni con controllo versione. */ package estrazioni; /** * * @author 3Ai */ public class Estrazioni { /** * @param args the command line arguments */ public static void main(String[] args) { int[] pippicalzelunghe = new int[10]; Vettore v = new Vettore(pippica...
import java.util.HashMap; import java.util.Map; import java.util.Set; import javax.jws.HandlerChain; import javax.jws.WebMethod; import javax.jws.WebService; @WebService(endpointInterface="BookServiceInterface", targetNamespace="http://localhost:8888/ws/book", portName="BookPort", name="Book", serviceName="BookServic...
package com.kirer.voice.api; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.IOException; import java.util.concurrent.TimeUnit; import okhttp3.Interceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import retrofit2.Retrofit; import retr...
package com.team2915.POWER_UP.commands; import com.team2915.POWER_UP.Robot; import edu.wpi.first.wpilibj.command.Command; public class RunClimber extends Command { public RunClimber(){ requires(Robot.climber); } @Override protected void execute() { if (Robot.io.getXbox().getRawButton(...
/* * UNIVERSIDAD ICESI * ALGORITMOS Y PROGRAMACION II * PROYECTO FINAL DEL CURSO * SANTIAGO RODAS Y JULIAN ANDRES RIVERA * GRUPO BANCARIO */ package application; import excepciones.InformacionExisteExcepcion; import excepciones.InformacionVacia; import excepciones.NoExisteInformacionExcepcion; import javafx.eve...
/** * Kenny Akers * Mr. Paige * Homework #13 * 12/8/17 */ public class Homework_13 { public static void main(String[] args) { if (args.length <= 2) { // If not enough arguments were entered (either nothing for the tree or nothing to search for)... System.out.println("Not enough arguments....
package com.java.OOP; public class Manager extends Employee { public Manager(Long id, String firstName, String lastName) { super(id, firstName, lastName); // TODO Auto-generated constructor stub } public static void main(String[] args) { Manager manager = new Manager(120L, "Nick", "Falls"); System.out...
package Service_Layer; public class ComplaintController { public boolean add_complaint(String description){ // שליחת התראה למנהל המערכת return true; } }
package org.firstinspires.ftc.teamcode; public class HelloWorld { //This is so coooooooooooool! }
package de.cuuky.varo.gui.report; import org.bukkit.Material; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.event.inventory.InventoryCloseEvent; import org.bukkit.inventory.ItemStack; import de.cuuky.varo.Main; import de.cuuky.varo.gui.SuperInventory; import de.cuuky.varo.gui.utils...
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Date; import java.text.ParseException; import java.text.SimpleDateFormat; public class ExceptionTest { public static void main(String[] args) { // TODO Auto-generated method stub File f = new File("d:/test...
package com.example.diceouttesttutorial; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import andro...
/* * Copyright © 2018 www.noark.xyz All Rights Reserved. * * 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 ! * 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件: * * http://www.noark.xyz/LICENSE * * 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播; * 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本; * 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保...
package com.youthlin.example.plugin.hello; import com.youthlin.example.plugin.IPlugin; import lombok.extern.slf4j.Slf4j; /** * @author youthlin.chen * @date 2020-04-15 19:10 */ @Slf4j public class HelloPlugin implements IPlugin<Object> { @Override public void onActive(Object context) { log.debug("o...
package com.aikiinc.coronavirus.data; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.aikiinc.coronavirus.exception.CoronaVirusException; import com.aikiinc.coronavirus.utility.CoronaVirusUtil; import java.net.URL; import java.time.LocalDate; import java.time.format.DateTimeFormatter; public cl...
package com.arthur.leetcode; /** * @program: leetcode * @description: II. 平衡二叉树 * @title: JZoffer55_2 * @Author hengmingji * @Date: 2022/1/3 15:08 * @Version 1.0 */ public class JZoffer55_2 { public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { ...
package codeu.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.time.Instant; import java.util.List; import java.util.UUID; import codeu.model.dat...
package com.atlassian.theplugin.idea.action.bamboo.onebuild; import com.intellij.openapi.actionSystem.AnActionEvent; /** * User: jgorycki * Date: Jan 7, 2009 * Time: 2:23:11 PM */ public class ViewBuildAction extends AbstractBuildDetailsAction { public void actionPerformed(AnActionEvent e) { openBuildInBrowser...
package Services.InfoService; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name ="RuleResponse", namespace="Rule") public class RuleResponse { private ...
package com.example.bootcamp.serviceImpl; import java.util.Base64; import java.util.Optional; import javax.validation.Valid; import org.apache.commons.lang.RandomStringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.example.bootcamp.com...
package ${package}.${MainClassNameLow}.resource.mapper; import ${package}.${MainClassNameLow}.resource.response.${MainClassName}Response; import ${package}.data.model.${MainClassName}; import com.prosegur.rest.mapper.configuration.DefaultRequestMapperConfig; import org.mapstruct.Mapper; @Mapper(componentModel = "spri...
package com.asiainfo.worktime.entity; import java.io.Serializable; import javax.persistence.*; import java.util.List; /** * The persistent class for the TB_RPOC_TYPE database table. * */ @Entity @Table(name="TB_RPOC_TYPE") //@NamedQuery(name="TbRpocType.findAll", query="SELECT t FROM TbRpocType t") ...
package app.com.thetechnocafe.eventos.DataSync; import android.content.Context; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; /** * Created by gurleensethi on 15/10/16. * Singleton class to maintain a single request queue over the lifetime of the app */ public class VolleyQueu...
/* * Copyright 2002-2020 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.udacity.jwdnd.course1.cloudstorage; import com.udacity.jwdnd.course1.cloudstorage.model.Note; import com.udacity.jwdnd.course1.cloudstorage.pages.HomePage; import com.udacity.jwdnd.course1.cloudstorage.pages.ResultPage; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org....
public class arrayManipulation { static long arrayManipulation(int n, int[][] queries) { int[] values = new int[n+2]; int rows = queries.length; int i = 0; while (i < rows) { values[queries[i][0]] += queries[i][n - 1]; values[queries[i][1]+1] -= queries[i][n...
package com.practice; import java.util.Scanner; public class Array_Q8 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //Reading n from user System.out.print("Enter the number of elements you want in the array: "); byte n = sc.nextByte(); ...
package ru.aggregator.object.request; import ru.aggregator.object.Page; /** * Created by user on 03.01.2015. */ public class SearchGeneRequest extends Page { private Long id; private String name; private String dsc; public Long getId() { return id; } public void setId(Long id) { ...
package com.youthlin.example.concurrent; import java.util.AbstractQueue; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.Queue; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; /** * Copyright (...
package utilities.readers; import org.apache.poi.ss.usermodel.*; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import java.io.File; import java.io.FileInputStream; import java.io.IOException; public class ExcelReader { static String filePath = "0"; static XSSFWorkbook wb; public static void setPath(String ...
package br.edu.ifg.sistemacomercial.logic; import br.edu.ifg.sistemacomercial.dao.ClienteDAO; import br.edu.ifg.sistemacomercial.entity.Cliente; import java.util.List; import javax.inject.Inject; public class ClienteLogic implements GenericLogic<Cliente, Integer> { @Inject private ClienteDAO dao; @O...
package com.enesmumu.nba.platform.player.pojo; /** * 球员 * @author 作者:BoXuelin * @date 创建时间:2017年10月18日 * @version 1.0 */ public class Player { private Long id; private String name;//姓名 private String season;//赛季 private Double height;//身高 private Double weight;//体重 private Integer attr;//属性 public Long ge...
package socialnetwork.domain; import socialnetwork.repository.Status; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Request extends Entity<Tuple<Long, Long>> { Utilizator from; Utilizator to; Status status; private String fromName;...
package java0722; public class BookDTO { private String bookname; // 책이름 private String author; // 작가 private int booknumber; // 책 넘버 private boolean loans = true; // 대출여부 private String loansname; // 대출받은 사람? public BookDTO() { } @Override public String toString() { return "BookDT...
package com.company; import java.sql.SQLOutput; import java.util.Scanner; public class Main { public static void main(String[] args) { BankAccount Barry = new BankAccount(); // Initiates a new Scanner for inputting data Scanner scanner = new Scanner(System.in); // Entering ...
package com.fwo.hp.fwo.app.provider; import com.fwo.hp.fwo.app.model.TranslateResponseModel; import com.fwo.hp.fwo.app.model.YahooResponseModel; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Query; /** * Created by ajnen on 12/10/2017. */ public interface Endpoint { String YAHOO_URL...
package sch.frog.calculator.util; public class OutObject<V> { public V value; }
package view; import java.io.IOException; /** * Represents the view of a multi-layer image processing application that is able to send * messages given to it. */ public class SimpleMultiLayerImageProcessingView implements ImageProcessingView { private final Appendable ap; /** * Constructor that initialize...
/** * Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT * Copyright (c) 2006-2018, Sencha Inc. * * licensing@sencha.com * http://www.sencha.com/products/gxt/license/ * * ================================================================================ * Commercial License * ============================================...
package com.ytdsuda.management.service; import com.ytdsuda.management.entity.Authority; import java.util.List; public interface RoleAuthorityService { List<Authority> findRoleAuth(Integer roleId); Integer changeRoleAuth(Integer roleId, List<Integer> authIds); }
package com.dq.police.controller.actions.Task; import com.dq.police.controller.Action; import com.dq.police.helpers.ConstraintsUtil; import com.dq.police.model.PersistenceManager; import com.dq.police.model.entities.Related; import com.dq.police.model.entities.Task; import com.dq.police.view.View; import lombok.AllArg...
package com.its.controllers; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annota...
package com.atlantiscoding; import java.util.Comparator; public class SuitAndRankSorter implements Comparator<Card> { public int compare(Card c1, Card c2) { return c1.getSuit() - c2.getSuit(); } }
package com.example.graci.myapplication; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; public class Levels extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState...
import java.util.*; class sum_of_number { int sum=0; int add(int n) { sum=n%10; if(n==0) return 0; else return (sum+add(n/10)); } public static void main(String args[]) { int n; Scanner sc=new Scanner(System.in); System.out.println("Enter the no."); n=sc.nextInt(); sum_of_number obj=new sum_of...
package in.jaaga.thebachaoproject; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ProgressBar; ...
package com.test.base; import com.test.SolutionA; import junit.framework.TestCase; public class Example extends TestCase { private Solution solution; @Override protected void setUp() throws Exception { super.setUp(); } public void testSolutionA() { soluti...
package com.web.common; public class StateDTO { protected String UserID; protected int InbundCnt; //수신건수 protected int OutboundCnt; //발신건수 protected int AssignmentCnt; //수신배정건수 protected int NonImageOpenCnt; //수신미확인건수 protected int NonCompleteCnt; ...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; class Tetramino implements Minos { public final int X; public final int Y; public final char TYPE; private final Mino[] minos; public static final char[] TYPES = {'I', 'J', 'L', 'O', 'S', 'T', 'Z...
package com.zjf.myself.codebase.activity.UILibrary; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.ListView; import android....
/*hard A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks the home of someone in the group. The distance is calculated usingManhattan Distance, where distance(p1, p2) = |p2.x - p1.x| + |p2.y - p1.y|. For example, given three ...
/** * 锁对象的改变 */ /** * @author Administrator * */ package mulitThread.chapter02.t2_2_16;
package dk.webbies.tscreate.analysis; import com.google.common.collect.Iterables; import dk.au.cs.casa.typescript.types.*; import dk.webbies.tscreate.analysis.unionFind.*; import dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap; import dk.webbies.tscreate.util.Pair; import dk.webbies.tscreate.u...
package com.study.audio.ui; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Parcelable; import android.support.annotation.NonNull; import android.support.v4.media.MediaMetadataCompat; import android.support.v7.widget.CardView; import android.support.v7.wi...
package com.reactnative.googlecast.types; import androidx.annotation.Nullable; import com.google.android.gms.cast.Cast; public class RNGCActiveInputState { public static @Nullable String toJson(final int value) { switch (value) { case Cast.ACTIVE_INPUT_STATE_YES: return "active"; case Cast.ACTIVE...
package ocdhis2; import java.io.File; import java.io.StringWriter; import java.util.ArrayList; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.ann...
package com.androidsample.contentresolversample; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.LoaderManager; import android.support.v4.content.CursorLoader; import android.support.v4.content.Loader; import android.support...
package com.mlms.mobilelaundrymanagementsystemadmin.ui.home; import android.annotation.SuppressLint; import android.content.Intent; 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 androi...
package com.test.base; import java.util.Arrays; /** * .数据 -> 图 * .被坑了,应该用链表实现图的,用数组实现,麻烦又功能弱 * @author YLine * * 2019年2月22日 下午1:53:14 */ public class ArrayGraph { public static ArrayGraph createUndirectGraph(int capacity) { ArrayGraph graph = new ArrayGraph(UNDIRECTED_GRAPH, capacity); a...
package no.bring.demo.logic; import org.springframework.context.annotation.Bean; import org.springframework.stereotype.Component; @Component public class Logic { // En Logic klasse som inneholder logikken til kalkulatoren // for utregning av en enkelsending public int singlePrice(int base, int packetp, int c...
/* * Copyright (C) 2003-2013 eXo Platform SAS. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This...
package com.esum.framework.jdbc; import java.util.HashMap; /** * DB에서 Select한 정보를 Map<String, Object>을 담는다. */ public class RecordMap extends HashMap<String, Object>{ private static final long serialVersionUID = -8454065579596493854L; public Object getObject(String key) { return get(key); } public Object ...
/** * Copyright (c) 2012, Institute of Telematics, Institute of Information Systems (Dennis Pfisterer, Sven Groppe, Andreas Haller, Thomas Kiencke, Sebastian Walther, Mario David), University of Luebeck * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, ar...
package com.atguigu.java; /* ��++ : �����㣨��ֵ��������1 ǰ++ ��������1 �����㣨��ֵ�� ��-- : �����㣨��ֵ�� ���Լ�1 ǰ-- �����Լ�1 �����㣨��ֵ�� */ public class test1{ public static void main(String[] args){ System.out.println("---hou++---"); int a = 5,b = 10; a++; System.out.println("a = " + a);//5 ...
open module modmain { // allow reflective access, currently used in the example_jerry-mouse requires modcallbackhandler; requires modcallee; }
package com.bnebit.sms.util.exception; //리팩토링 후 안 쓰는 Exception @Deprecated public class SessionCheckException extends RuntimeException{ private static final long serialVersionUID = 1L; private String message; private String url = "/error/errorPage"; public SessionCheckException() { this.message =...
package in.rgukt.proxyserver.core; import java.util.HashMap; /** * HTTPRequest is used to store incoming HTTP requests from web clients like * browsers etc., This has all the methods to conveniently access individual * pieces of a HTTP request like HTTP method, resource, version, headers. * * @author Venkata Ja...
package com.sherry.epaydigital.bussiness.service; import com.sherry.epaydigital.bussiness.domain.PaymentRequestDomain; import com.sherry.epaydigital.data.model.PaymentRequest; import com.sherry.epaydigital.data.repository.PaymentRequestRepository; import org.springframework.beans.factory.annotation.Autowired; import o...
package com.dbs.portal.database.to.subscription; public interface ScheduledJobFieldConstants { // Dependent Services public static final String SECURITY_SVC = "securityService"; public static final String PREFERENCES_SVC = "preferencesService"; public static final String SUBSCRIPTION_SVC = "subscriptionSer...
package com.culturaloffers.maps.model; import javax.persistence.*; import java.util.Objects; import java.util.Set; @Entity public class OfferType { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @Column(nullable = false, unique = true) private String name; @OneTo...
/** * Copyright 2015 www.codereligion.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 by applicable law or agre...
package home_work_1.txt; public class Txt1_3 { public static void main (String[] args){ int num1 = -42; int num2 = -15; int a = ~num1; //было 11010100 System.out.println(a); //стало 00101011 a = ~num2; //было 11110111 ...
package com.quixmart.sdk.support; public class QuixmartException extends RuntimeException { public QuixmartException() { super(); } public QuixmartException(String message) { super(message); } public QuixmartException(String message, Throwable cause) { super(message, caus...
package com.train.amm; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import com.train.amm.utils.U...
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.neuron.mytelkom; import android.content.DialogInterface; import android.content.Intent; // Referenced classes of package com.neuron...
package com.cqut.dao; import com.cqut.model.RateGroup; public interface RateGroupMapper { int deleteByPrimaryKey(String rategroupid); int insert(RateGroup record); int insertSelective(RateGroup record); RateGroup selectByPrimaryKey(String rategroupid); int updateByPrimaryKeySelective(RateGroup...
package assignment2; import java.util.Scanner; public class assignment12 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(" Enter your Name: "); String name = input.nextLine(); System.out.print("\n Enter your Nationality: "); String national...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.com.vebo.dados.swing.table; import br.com.vebo.dados.mapeamento.Calculo; import br.com.vebo.util.DoubleUtil; import java.util.ArrayList; import java.util.List; import javax.swing.table.AbstractTableModel; /...
import com.sun.imageio.plugins.gif.GIFImageReader; import com.sun.imageio.plugins.gif.GIFImageReaderSpi; import com.sun.imageio.plugins.png.PNGImageWriter; import com.sun.imageio.plugins.png.PNGImageWriterSpi; import javax.imageio.spi.ImageReaderSpi; import javax.imageio.spi.ImageWriterSpi; import javax.imageio.stream...
package walnoot.dodgegame; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.math.Interpolation; import com.badlogic.gdx.math.MathUtils; public class SoundManager{ // private static final String[] mu...
package dev.nowalk.services; import java.util.List; import dev.nowalk.models.Account; import dev.nowalk.models.User; public interface UserServices { //the services associated with users //we have our basic CRUD operations here as a good practice so each layer can communicate directly above or below it //we don...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hdfcraft.minecraft; import java.awt.Point; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import org.jnbt.CompoundTag; import org.jnbt.Tag; import sta...
package Pro04.ReConstructBinaryTree; import java.util.Arrays; public class Solution { // 递归,先序的第一个数字是根节点,由此在中序中区分出左右子树,再在左右子树中重复该步骤 public TreeNodes reConstructBinaryTree(int[] pre, int[] in) { if (pre.length == 0 || in.length == 0) { return null; } TreeNodes...