text
stringlengths
10
2.72M
package front.menu; import back.GameDifficulty; import front.Button; import front.Window; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionL...
package org.elasticsearch.plugin.zentity; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.ObjectWriter; import io.zentity.common.CompletableFutureUtil; import io.zentity.common.FunctionalUtil.UnCheckedFunction; import io.zentity.common.FunctionalUtil.UnCheckedSupplier; impor...
package com.mygdx.game; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Animation; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; /** * Created by dkotenko on 7/23/18. */ public class BulletAlien { private final int SPEED = 8;...
package f.star.iota.milk.ui.meitumen.meitu; import org.jsoup.Jsoup; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import f.star.iota.milk.base.PVContract; import f.star.iota.milk.base.StringPresenter; public class MeiT...
package com.becool.baidu.pojo; public class HospitalDeptPrice { private String name; private String price; private String apparatus; private String therapy; private String comfort; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPrice() { ...
package ru.gnkoshelev.jbreak2018.perf_tests.strings; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.Outpu...
package com.fragrancepluscustomerdatabase.scottauman; import android.app.Activity; import android.support.v4.app.Fragment; /** * Created by Scott on 3/3/2016. */ public interface BackToActivity { void attachNewFragment(Fragment fragment); void openNewActiviyt(Activity activity); }
package org.ohdsi.webapi.test; import org.junit.Test; import org.ohdsi.webapi.vocabulary.Domain; import org.ohdsi.webapi.vocabulary.Vocabulary; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.ResponseEntity; /** * */ public class VocabularyServiceIT extends WebApiIT { ...
package com.git.cloud.resmgt.network.model.po; import com.git.cloud.common.model.base.BaseBO; /** * @Title RmNwSecureAreaPo.java * @Package com.git.cloud.resmgt.network.model.po * @author syp * @date 2014-9-15下午4:32:26 * @version 1.0.0 * @Description * */ public class RmNwSecureAreaPo e...
package tw.org.iiijava; import java.io.File; import java.io.FileReader; public class zora36 { public static void main(String[] args) { File file1 = new File("test/this1"); try{ FileReader reader = new FileReader(file1); int c; while((c=reader.read()) != -1){ System.out.print((char)...
package net.yustinus.crud.web.base; import org.zkoss.bind.annotation.GlobalCommand; import org.zkoss.zk.ui.Executions; public class NavbarVM { @GlobalCommand("logout") public void logout() { Executions.sendRedirect("/login?logout"); } }
package baitap; import java.util.Scanner; public class bai2 { public static void main(String[]args) { Scanner scanner = new Scanner(System.in); int a; int b; int c; a = scanner.nextInt(); b = scanner.nextInt(); c = scanner.nextInt(); if (a==0) { if(b==0) { if (c==0) { System.out.println(" phuong trinh ...
package phase01; import java.util.ArrayList; import java.util.Scanner; public class TextUtilities extends Formatting{ /************************** Attribute ************************/ public static int lengthText = 0; // Total characters public int wordCount = 0; // Total words // Constructor with parameter pu...
package com.java.util.fuxi.demo5; public class SmartPhoneTest { public static void main(String[] args) { SmartPhone smartPhone = new SmartPhone(); smartPhone.sendMessage(); } }
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = null; * } * } */ public class Solution { public ListNode getIntersectionNode(ListNode headA, ListNode headB) { if(headA == null || ...
package com.ctg.itrdc.janus.common.compiler.support; import static org.hamcrest.CoreMatchers.allOf; import static org.junit.Assert.assertThat; import static org.junit.matchers.JUnitMatchers.containsString; import javassist.ClassPool; import javassist.LoaderClassPath; import org.junit.Test; import com.ctg.itrdc.janus...
package com.esum.comp.uadacom; import java.util.HashMap; import java.util.Map; import com.esum.framework.core.component.code.ComponentCode; /** * UA Dacom Error Codes. */ public class UaDacomCode extends ComponentCode { /* 번호 에러코드 에러원인 1 UADA01 UAINFO 로딩 에러 2 UADA02 DACOM 서버 접속 에러 3 UADA03 D...
import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.TextArea; import javafx.stage.Stage; import java.ne...
package fr.eni.groupe2.bll; import java.util.ArrayList; import java.util.List; import fr.eni.groupe2.bo.Utilisateur; import fr.eni.groupe2.dal.DAO; import fr.eni.groupe2.dal.DAOFactory; import fr.eni.groupe2.messages.BusinessException; import fr.eni.groupe2.messages.DALException; /** * * @author groupe...
// Class name should be the same as File name // one class per file // public public class KPointMain { // special method: main() // where the program starts // public or private // static // have to have: return type!! (void) // method name (main) // list of arguments (or empty ()...
package com.example.event_project.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; @Data @Entity @Builder @NoArgsConstructor @AllArgsConstructor public class OrganizerToAdd { @Id @GeneratedValue(strategy = Generat...
package Aviary; import java.util.HashMap; import java.util.Map; public class Aviary<T> { private AviarySize aviarySize; public Aviary(AviarySize aviarySize) { this.aviarySize = aviarySize; } public Aviary() { aviarySize = AviarySize.MEDIUM; } private final Map<String, T> lis...
package com.infohold.elh.base.model; import javax.persistence.Entity; import javax.persistence.Table; import com.infohold.core.model.BaseIdModel; /** * 医生常规就诊时间安排 * @author Administrator * */ @Entity @Table(name="ELH_DOCTOR_DUTY") public class DoctorDuty extends BaseIdModel { /** * */ private static fina...
package br.edu.unoescsmo.aluga.regras; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import br.edu.unoescsmo.aluga.interfaces.ImovelInterface; import br.edu.unoescsmo.aluga.model.Imovel; import br.edu.unoescsmo.aluga.repository.Im...
package com.sbs.sbsattend.model; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.sbs.sbsattend.db.DBConnection; import com.sbs.tool.MySignal; import com.sbs.tool.SpecialCalendar; public class Logic { //private static String path = "http://10.0.2...
package com.lfalch.korome; import java.io.IOException; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; import com.lfalch.korome.packets.InvalidPacketException; import com.lfalch.korome.packets.Packet; import com.lfalch.korome.packets.P...
package rdfsynopsis.eval; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import rdfsynopsis.analyzer.Analyzer; import rdfsynopsis.statistics.StatisticalCriterion; public abstract class AbstractAnaly...
package dao; public class GoodsListSearchKeywordsDto { private String goodsNo; private String color; private String memo; private String goodsName; private String fromYear; private String fromMonth; private String fromDay; private String toYear; private String toMonth; private String toDay...
package hu.logout.example.divinity.phone; import android.Manifest; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.ActivityCompat; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; imp...
/** * This class is generated by jOOQ */ package schema.tables.records; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Record1; import org.jooq.Record4; import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; import schema.tables.AssessmentTrainingexample; /** * This class is...
package nl.tue.win.dbt.data; import com.google.common.collect.HashBasedTable; import com.google.common.collect.RangeSet; import com.google.common.collect.Table; import nl.tue.win.dbt.util.IntegerRangeSets; import java.io.Serializable; import java.util.*; import java.util.function.Function; public class LabeledVersio...
package com.yash.function; import java.util.Objects; import java.util.function.Predicate; public class PredicateDemo { public static void main(String[] args) { Predicate<String> predicateString=(s)->s.length()>6; System.out.println("Predicate Result:"+predicateString.test("shabbir")); Predicate<String> p...
package com.example.photoshare; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Patterns; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.google.android.g...
package academy.softserve.service; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class ValidatorServiceTest { @BeforeMethod public void setUp() { } @Test public void testValidate() { } }
import java.util.Scanner; class WrongAnswer extends java.lang.Exception { /** * random generated */ private static final long serialVersionUID = 9042451774593630116L; WrongAnswer(String message) { super(message); } } /* * Rename this class to Main! */ public final class T1_Ass...
package com.omg.omguw; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import android.app.Activity; import android.os.Bundle; im...
package frc.built_groups; import java.util.ArrayList; import edu.wpi.first.wpilibj2.command.Command; public final class GroupBuilder { GroupBuilder() { } final ArrayList<Command> commands = new ArrayList<>(); public void add(Command c) { commands.add(c); } }
package com.fgtit.app; public class TempVals { private static TempVals instance; public static TempVals getInstance() { if(null == instance) { instance = new TempVals(); } return instance; } public byte[] tempInfo=new byte[512]; public byte[] tempFP=new byte[2048]; public int fpCo...
/* * Copyright 2002-2017 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...
import java.util.*; public class PtManager { List<PT> ptlist = new ArrayList<>(); Calendar cal = Calendar.getInstance(); int daynum = cal.getActualMaximum(Calendar.DATE); public void ScheduleInit() { for(int i=0; i<=40; i++) { ptlist.add(new PT(" "," "," "," ")); } } public void modify(int day,PT p...
/* * 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 kuntosali; import java.io.OutputStream; import java.io.PrintStream; import fi.jyu.mit.ohj2.Mjonot; /** * @author antti * @version 3.8.2020 * */ public class Ryhmaliikunta implements Cloneable { private int tunnusNro; private int asiakasNro; private String nimi = ""; private String viikon...
package art4muslim.macbook.rahatydriver.adapters; import android.app.Activity; import android.content.Context; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.LinearL...
package com.meetingapp.android.util; import android.content.Context; import android.graphics.Typeface; /** * This class is used for defining the typeface */ public class TypeFaceUtils { public static Typeface getTypeFace(Context context, int font) { String str; switch (font) { case ...
package com.sample.estimote; import android.os.Bundle; import android.os.RemoteException; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.BaseExpandableListAdapter; import android.widget.TextView; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconCon...
package ah.rest; import org.slf4j.event.Level; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; impor...
package edu.si.trippi.impl.sparql.converters; import static java.net.URI.create; import static org.apache.jena.graph.NodeFactory.createBlankNode; import static org.apache.jena.graph.NodeFactory.createURI; import static org.trippi.impl.RDFFactories.createResource; import org.apache.jena.ext.com.google.common.base.Con...
package com.camila.web.service; import static org.junit.Assert.assertNotNull; import org.junit.Test; import com.camila.web.dominio.services.ClienteService; public class ClienteTest { private ClienteService clienteServ; //GET LISTA @Test public void t() { assertNotNull(clienteServ.lista()); ...
/* * Origin of the benchmark: * repo: https://github.com/diffblue/cbmc.git * branch: develop * directory: regression/cbmc-java/boolean1 * The benchmark was taken from the repo: 24 January 2018 */ class Main { static public void main(String[] args) { boolean my_boolean = args.length > 3; /...
package io.electrum.sdk.masking2; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import java.io.IOException; class DoNotPersistSerializer extends JsonSerializer<Object> { private String replacementVa...
package com.arthur.leetcode; import java.util.ArrayList; import java.util.Arrays; /** * @program: leetcode * @description: 把数组排成最小的数 * @title: JZoffer45 * @Author hengmingji * @Date: 2022/1/1 18:53 * @Version 1.0 */ public class JZoffer45 { public String minNumber(int[] nums) { Integer[] ans = Arra...
package clique; import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; public class CK_Graph...
package com.fhsoft.subject.service; import java.util.ArrayList; 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 org.springframework.transaction.annotation.Transactional; import ...
package pp.model.comparators; import pp.model.xml.CGlad; import java.util.Comparator; /** * Created by IntelliJ IDEA. * User: alsa * Date: 08.12.11 * Time: 1:52 * To change this template use File | Settings | File Templates. */ public class GladCanTankComparator implements Comparator<CGlad> { @Override publi...
package org.wso2.carbon.identity.user.endpoint.dto; import java.util.ArrayList; import java.util.List; import org.wso2.carbon.identity.user.endpoint.dto.BasicProfileDTO; import org.wso2.carbon.identity.user.endpoint.dto.ConsentReceiptDTO; import org.wso2.carbon.identity.user.endpoint.dto.SecurityDTO; import io.swagge...
public interface Default1 { }
package com.myvodafone.android.front.widget; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.appwidget.AppWidgetProviderInfo; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; ...
package br.com.wasys.library.service; import android.content.Context; import android.content.pm.PackageManager; import android.support.v4.content.ContextCompat; import org.apache.commons.lang3.ArrayUtils; import br.com.wasys.library.Application; /** * Created by pascke on 05/09/16. */ public abstract class Servic...
package com.gsccs.sme.plat.bass.service; /** * 查询参数 * * @author x.d zhang * */ public class QueryParam { private String siteId; private String keyword; private String cateId; // 分页参数 private int page = 1; private int rows = 10; private String order = "score desc"; public String getSiteId() { retur...
/* * 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 livraria.vo; import java.io.Serializable; /** * * @author Nilliam Ometto */ public class VendaItem implements Serializabl...
/** * 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 * ============================================...
public class Solution { int[] dp; public int util(int n) { if(dp[n] != -1) return dp[n]; dp[n] = util(n-1) + util(n-2); return dp[n]; } public int climbStairs(int n) { dp = new int[n+1]; Arrays.fill(dp, -1); dp[0] = 1; dp[1...
package co.sblock.commands.info; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; import org.bukkit.Material; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import com.google.common.coll...
class Solution { public int[] dailyTemperatures(int[] temperatures) { int n = temperatures.length; int hottest = 0; int answer[] = new int[n]; for (int currDay = n - 1; currDay >= 0; currDay--) { int currentTemp = temperatures[currDay]; if (currentTem...
package example.imp; import java.io.FileInputStream; import java.text.SimpleDateFormat; import java.util.List; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; import com.alibaba.fastjson.JSON; import excel.ExcelIm...
package com.meehoo.biz.core.basic.concurrency.task; /** * @author zc * @date 2020-12-31 */ public interface IBuilder { }
package com.datagraph.core.db.model.impl; import com.datagraph.core.db.model.TaskDao; import com.datagraph.core.engine.tasks.Task; /** * Created by Denny Joseph on 6/17/16. */ public class TaskJDBIDao implements TaskDao { @Override public int create(Task task) { return 0; } @Override p...
/** * */ package com.cassandra.TrialWithIText; /** * @author Cassandra Mae * */ public enum ToolsOptions { RECTANGLE("Rectangle"), SELECT("Select"); public final String label; ToolsOptions(String label) { this.label = label; } }
package de.netempire.state.classes; public class Fork { private boolean taken; private int id; public synchronized void put() { // Fork is placed back on the table. -> status: not taken taken = false; notify(); } public synchronized void get() throws InterruptedException ...
package com.karya.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="crmsplead001mb") public class Crm...
package com.aof.webapp.action.prm.report; import java.sql.SQLException; import java.util.Hashtable; import java.util.LinkedList; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.hibernate.HibernateException; import net.sf.hibernate.Quer...
package com.culturaloffers.maps.component; import com.culturaloffers.maps.helper.OnRegistrationCompleteEvent; import com.culturaloffers.maps.model.User; import com.culturaloffers.maps.services.UserDetailsServiceImpl; import com.culturaloffers.maps.services.UserService; import org.springframework.beans.factory.annotati...
package com.kevin.cloud.service.feign; import com.kevin.cloud.commons.dto.user.dto.UmsAdminDto; import com.kevin.cloud.configuration.fegin.configuration.FeignRequestConfiguration; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframewo...
package no.hvl.dat100; import static javax.swing.JOptionPane.*; public class Oppgave6_uke_36 { public static void main(String[] args) { // lage et program som regner n! = n fakultet. (5! = 1*2*3*4*5 = 120) int n = Integer.parseInt(showInputDialog("Skriv in verdi for n ")); int a = 1; // lager en telle v...
package com.ecommerceserver.controller; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Optional; import java.util.regex.Pattern; import com.ecommerceserve...
package com.git.cloud.resmgt.storage.dao; import java.sql.SQLException; import java.util.List; import com.git.cloud.common.dao.ICommonDAO; import com.git.cloud.resmgt.storage.model.po.SePoolLevelRulePo; import com.git.cloud.resmgt.storage.model.vo.SePoolRuleCellVo; public interface ISePoolLevelRuleDAO exte...
package com.needii.dashboard.model.form; import com.needii.dashboard.model.OrderDetail; import com.needii.dashboard.model.OrderDetailStatusEnum; public class OrderDetailForm { private String skuName; private String skuImage; private float unitPrice; private float promotionPrice; private float ship...
package com.exp.mapi.controller; /** * Create By xiayang on 2018/8/8 */ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("user") public class UserController { @RequestMapping("id") public int get...
package commonwealth.scenes; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import commonwealth.game.BufferedImageLoader; import commonwealth.game.Game; import commonwealth.game.Game.STATE; import commonwealth.game.Map; public class Origin { ...
/** * Created with IntelliJ IDEA. * User: dexctor * Date: 12-11-28 * Time: 下午1:44 * To change this template use File | Settings | File Templates. */ public class LinkedListSort { public static void main(String[] args) { int N = StdIn.readInt(); MyLinkedList<Integer> list = n...
package com.chenqk.springmvc.dao; import java.util.List; import com.chenqk.springmvc.entity.Tree; public interface TreeDao { /** * 获取当前节点id所对应的tree对象 * @param id * @return tree 实例对象 */ public Tree getNodeById(int id); /** * 获取当前节点下的所有子节点,不包括二级以后的节点 * @param pid 父节点 * @return list 子节点对象 */ public ...
import java.util.Calendar; public class Czas { public Czas() { } public static String getGodzina(){ Calendar now = Calendar.getInstance(); String time =""; int h = now.get(Calendar.HOUR_OF_DAY); int m = now.get(Calendar.MINUTE); if(h < 10) { time += "0" +...
package com.revature.models; import java.util.Objects; public class BankAccount { private int id; private double balance; private boolean isApproved; private int customerId; public BankAccount() { super(); } public BankAccount(int id, double balance, boolean isApproved, int customerId) { super(); t...
package com.example.demo.entity; import com.fasterxml.jackson.annotation.JsonManagedReference; import lombok.Data; import javax.persistence.*; import java.math.BigDecimal; @Data @Entity public class Product { @Id @GeneratedValue private Long id; @ManyToOne(fetch = FetchType.EAGER) private Category category; p...
package uno.iut.fr.uno.modele; import java.io.File; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.Stack; import uno.iut.fr.uno.modele.carte.BlackCarteEvent; import uno.iut.fr.uno.modele.carte.Carte; /*...
/* * Copyright 2017 Lantrack Corporation All Rights Reserved. * * The source code contained or described herein and all documents related to * the source code ("Material") are owned by Lantrack Corporation or its suppliers * or licensors. Title to the Material remains with Lantrack Corporation or its * suppliers ...
package com.cs.player; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlRootElement; /** * @author Hadi Movaghar */ @XmlRootElement @XmlEnum public enum TrustLevel { BLACK, RED, YELLOW, BLUE, GREEN }
package Functions; import java.util.Scanner; public class AreaPeriRect { public static int area(int a, int b) { int ans; ans = a * b; return ans; } public static int peri(int a, int b) { int ans; ans = 2 * (a + b); return ans; } public static void ...
/* * Copyright (c) 2014, Vuzix Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
/* * Copyright 2016 Shakuganns. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * 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 javaPackage; import datos.PersonaJDBC; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletExc...
package objetos.aeronaves.enemigos; import movimiento.Posicion; import movimiento.patrones.Circular; import objetos.Energia; import objetos.aeronaves.Enemigo; import objetos.armas.CuartoArmas; import org.jdom.*; import vistas.FactoryVistas; import ar.uba.fi.algo3.titiritero.ControladorJuego; import ar.uba.fi.algo3.tit...
package second; import java.time.LocalDate; import java.time.LocalTime; public class TimeExample { public static void main(String[] args) { // TODO Auto-generated method stub String time="16:30:00"; LocalDate dateofbirth=LocalDate.parse("2020-02-02"); LocalTime cabpickuptime=LocalTime.parse(time)...
package com.myneu.project.Controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.stereotype.Controller; import ...
package com.bcil.testtablayoutviewpager; import androidx.appcompat.app.AppCompatActivity; import androidx.viewpager.widget.ViewPager; import android.os.Bundle; import com.google.android.material.tabs.TabLayout; import com.google.android.material.tabs.TabLayout.TabLayoutOnPageChangeListener; public class MainActivit...
package com.master; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @ComponentScan("com.master") @MapperScan("com.master.dao") @SpringBo...
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.io.PrintStream; public class Simulator { /** * it works for multiple hou...
package com.myth.springboot.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class JumpController { //页面跳转------------------------------------------------------------...
package javacode; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.logging.Level; import java.util.logging.Logger; import schema.db_connect; public class cgpa implements CalculateResult{ String grad...
package com.github.bot.curiosone.core.nlp.tokenizer.interfaces; import com.github.bot.curiosone.core.nlp.tokenizer.Sentence; import com.github.bot.curiosone.core.nlp.tokenizer.SentenceType; import com.github.bot.curiosone.core.nlp.tokenizer.Token; import java.util.List; /** * Sentence info. * * @author Andrea Rivi...