text
stringlengths
10
2.72M
/* * 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 gt.com.atel.logger; import java.io.Serializable; import java.util.logging.Level; import java.util.logging.Logger; import javax...
package behavioral.interpreter; public class ExpressionA implements IExpression{ public void interpret(Context context) { System.out.println("ExpressionA"); } }
package lesson7.homeWork.exceptions; public class NegativeEatCountException extends RuntimeException{ public NegativeEatCountException(String message) { super(message); } }
package com.mec.datareceiver.service; import java.util.List; import com.mec.datareceiver.model.dao.UserDao; import com.mec.datareceiver.model.domain.User; public class SimpleUserManager implements UserManager { private UserDao userDao; public void setUserDao(UserDao userDao) { this.userDao = userDao; ...
package com.sl.app.notice.notice.controller; import java.util.Locale; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import...
package com.example.sensortest; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.location.Location; import android.loc...
package nova; import static org.junit.Assert.*; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.junit.jupiter.api.Test; public class Testne2 { @Test public void mainTestInput(){ String input = "1\n"; ByteArrayInputStream in = new ByteArra...
/* * 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. */ import com.dthebus.designpatterns.behavioral.mediator.AmericanSeller; import com.dthebus.designpatterns.behavioral.mediator.Buy...
/* * 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 at.ac.tuwien.dsg.controllerunit; /** * * @author Anindita */ //// This class is used to design the structure of Desicion ...
package com.feng.genericClass; public class SubOrder3<T> extends Order<T> { //这个是泛型类 //这个和SubOrder2差不多 }
package com.javawebtutor.Controllers.EmployeeControllers; import com.javawebtutor.Controllers.Controller; import com.javawebtutor.Models.Users; import com.javawebtutor.Models.Classes.UsersCheck; import com.javawebtutor.Utilities.HibernateUtil; import javafx.collections.FXCollections; import javafx.collections.Observab...
package algorithms.graph.process; import java.util.ArrayList; import java.util.BitSet; import java.util.Collection; import java.util.List; import algorithms.graph.Edge; import algorithms.graph.EdgeWeightedGraph; import algorithms.graph.MST; import algorithms.sorting.heap.IndexMinPQ; import org.springframework.context...
package com.smyc.kaftanis.lookingfortable; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class ThirdScreen extends AppCompatActivity { Button next; @Override protected void onCreate...
public class sixth { public static void find_occur_one(int[] arr){ int len=arr.length; for (int i=0;i<len;i++){ int count=1; for(int j=i+1;j<len;j++){ if(arr[i]==arr[j]){ count++; arr[j]=0; } ...
/** * Copyright (C) 2014-2017 Philip Helger (www.helger.com) * philip[at]helger[dot]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/LICE...
import javax.swing.*; import java.awt.*; public class Cell { boolean isMark = false; byte value = 0; JLabel label; private Color color; Cell(byte value){ this.value = value; } void setMark(boolean isMark){ this.isMark = isMark; } boolean getMark(){ return th...
package com.romitus; import java.util.Calendar; public class Pedido { private Calendar momento; private Pizzas pizza; Pedido(){ Ingredientes i1 = new Ingredientes("Jamon",150); Ingredientes i2 = new Ingredientes(); Ingredientes[] ingredientes = new Ingredientes[2]; ingredi...
package com.mercadolibre.android.ui.legacy.widgets.image; import androidx.annotation.NonNull; import android.view.MotionEvent; /** * Component that detects translation, scale and rotation based on touch events. * <p> * This class notifies its listeners whenever a gesture begins, updates or ends. * The instance of...
package com.metoo.foundation.domain; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.annotations.Cache; import org.hibernate.annotations.C...
package br.edu.ifpb.bdnc.projeto.entidades; import com.vividsolutions.jts.geom.Point; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalTime; /** * * @author Edilva */ public class Carona implements Serializable { private int id; private String origemTxt; private String de...
package com.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.dao.TeamDAO; import com.model.Team; @Service @Transactional publi...
package com.mike.blog.modal; import com.fasterxml.jackson.annotation.JsonProperty; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.validation.constraints.NotBlank; import java.util.Date; /** * This is the entity for blog * * @author Michael Ng * ...
package todo; import com.sun.tools.javac.comp.Todo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.ut...
/* Ara - capture species and specimen data * * Copyright (C) 2009 INBio (Instituto Nacional de Biodiversidad) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Lic...
package dwz.common.component.threadpool; import dwz.common.component.threadpool.ThreadPool.ThreadDiagnose; /** * 诊断信息接口 * * @Author: LCF * @Date: 2020/1/8 15:17 * @Package: dwz.common.component.threadpool */ public interface ThreadPoolDiagnose { public boolean running(); public int maxsize(); pu...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.stdext.credential; import org.springframework.stereotype.Component; import pl.edu.icm.unity.server.authn.LocalCredentialVerificator; import pl.edu.icm.unity.server.a...
package test; public class TeamCommand { private int ave_total = 0; //默认为0为ave,1代表total private int all_hot = -1; //默认小于零代表所有球队的信息,当大于零时代表获得热门球队,数值为命令数组的下标 private int num = -1; //默认值为-1,代表无此命令,值为30.当num为正数时,代表命令数组的下标 private int base_high = 0; //默认值为0代表基本数据类型,1代表高阶数据 private int sort = -1;...
/* * IpFilter.java * * Created on 2007Äê7ÔÂ7ÈÕ, ÉÏÎç10:02 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package tot.filter; import tot.global.Sysconfig; import tot.util.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging....
package com.ggtf.xieyingwu.brightnessapp; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private int brightness; private TextView tv; private BrightnessUtils utils; ...
package com.lei.tang.frame.service.user.impl; import com.lei.tang.frame.service.user.LoginRecordService; import com.lei.tang.frame.service.user.UserAccountService; import domain.CommonResponse; import domain.user.UserAccountBean; import entity.user.UserAccount; import org.apache.shiro.SecurityUtils; import org.apache....
package karolinakaminska.github.com; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class PathReaderDbHelper extends SQLiteOpenHelper{ public static final int DATABASE_VERSION = 1; public static final String DATABASE_NAME...
public class SortingAlgorithms { public static void selectionSort(int[] arr) { for(int pivot = 0; pivot < arr.length - 1; pivot++) { int lowPosition = pivot; for(int k = pivot + 1; k < arr.length; k++) { //checks if it's the lowest if(arr[k] < arr[lowPosition]) { //sets lowest lowPo...
package com.itheima; import java.util.Scanner; public class DebugTest02 { public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.println("输入第一个整数"); int a=in.nextInt(); System.out.println("输入第二个数"); int b=in.nextInt(); int max=getMax(...
package ru.duester.streams.v8.sources; public class IterableStreamSource<T> implements IStreamSource<T> { private IteratorStreamSource<T> iteratorSource; public IterableStreamSource(Iterable<T> iterable) { iteratorSource = new IteratorStreamSource<T>(iterable.iterator()); } @Override public T next() { retur...
package com.github.xuchengen; /** * 银联支付异常类 * 作者:徐承恩 * 邮箱:xuchengen@gmail.com * 日期:2019/8/29 */ public class UnionPayException extends Exception { private static final long serialVersionUID = 8689355700637811882L; public UnionPayException() { super(); } public UnionPayException(String m...
package com.uchain.core.consensus; import com.uchain.core.SwitchResult; import java.util.List; @FunctionalInterface public interface OnSwitchBlock { SwitchResult onSwitch(List<ForkItem> from, List<ForkItem> to, SwitchState switchState); }
package com.stk123.model.bo; import com.stk123.common.util.JdbcUtils.Column; import java.math.BigDecimal; import java.io.Serializable; import com.stk123.common.util.JdbcUtils.Table; @SuppressWarnings("serial") @Table(name="STK_FN_TYPE") public class StkFnType implements Serializable { @Column(name="TYPE", pk=tru...
package com.appirio.service.test.dao; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper; import com.amazonaws.services.dynamodbv2.document.Item; import com.amazonaws.services.dynamodbv2.model.AttributeDefinition; import com.amazonaws.services.dynamodbv2.model.KeySchemaElement; import com.amazonaws.s...
package com.citibank.ods.common.security.connector; import com.citibank.latam.sgway.service.LegacySgConnector; import com.citibank.latam.sgway.util.RecordList; /** * @author leonardo.nakada * * Adaptador do Legacy Connection do Objeto MOCK SECURITY GATEWAY */ public class SecurityGatewayMockAdapter imp...
package com.hhdb.csadmin.plugin.tree.ui.rightMenu; import java.awt.event.ActionEvent; import java.sql.SQLException; import javax.swing.JOptionPane; import com.hh.frame.common.log.LM; import com.hh.frame.swingui.event.CmdEvent; import com.hhdb.csadmin.plugin.tree.HTree; import com.hhdb.csadmin.plugin.tree.service.Scr...
package com.lesports.airjordanplayer.ui.parser; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.lesports.airjordanplayer.data.StreamInfoItem; import com.lesports.airjordanplayer.data.VideoStreamItem; import com.lesports.airjordanplayer.data.VideoStreamItem...
package com.techelevator.models; public abstract class NationalParkObject { public abstract NationalParkObject getParent(); }
package cr.ac.tec.ce1103.structures.simple; /** * Clase de busqueda binaria * @author Daniela Hernández * * @param <Tipo> */ public class BinarySearch <Tipo extends Comparable>{ private int indiceBusqueda; public int getIndiceBuscado(){return indiceBusqueda;} public static Integer[] RandomArray(){ ...
package me.gabreuw.bearapi.domain.service.exception; import org.springframework.web.bind.annotation.ResponseStatus; import static org.springframework.http.HttpStatus.NOT_FOUND; @ResponseStatus(NOT_FOUND) public class BeerNotFoundException extends RuntimeException { public BeerNotFoundException(String beerName) ...
package com.kieferlam.battlelan.game.player; import com.kieferlam.battlelan.game.Game; import com.kieferlam.battlelan.game.bufferobjects.CircleVBO; import com.kieferlam.battlelan.game.bufferobjects.RectangleVBO; import com.kieferlam.battlelan.game.bufferobjects.TexCoordBufferObject; import com.kieferlam.battlelan.game...
package com.iq.demo; class RemovingDuplicatesSimple { public static void main(String[] args) { String ip = "AAAB"; int count =0; String op = ""; for (int i = 0; i < ip.length(); i++) { // if (ip.charAt(i % ip.length()) != ip.charAt((i + 1) % ip.length())) ...
package com.sapient.dao; import java.sql.SQLException; import java.util.List; import com.sapient.model.Bug; public interface IBugService { void save(Bug newbug); Bug selectBug(int id); List<Bug> selectAllBugs(); boolean updateBug(Bug updatebug) throws SQLException; void setBugDAO(BugDAOMock mockbugdao); ...
package quanlycuahangsach; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.ArrayList; public class FileKH { public static boolean saveFile(ArrayList<KhachHang> list, String path){ ArrayList<KhachHang> li...
/* * 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.fastHotel.vista; /** * * @author rudolf */ import java.awt.Color; import java.awt.Component; /*from w ww...
/* * 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.codehunte.tis91d.model; import javax.persistence.*; @Entity @Table(name = "cities") public class City { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "idCity") private int idCity; @Column(name = "name", columnDefinition = "varchar(50)") private String name...
package edu.oleg088097.arkanoid.gameobjects; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; public class Paddle { private int initialX; private int initialY; private int rightEdge; private RectF rect; private RectF drawe...
package com.esum.web.util; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Vector; import org.apache.commons.collections.OrderedMap; import org.apache.commons.collections.map.ListOrderedMap; import org.apache.c...
/* * Copyright 2002-2019 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.simplon.esportdata.controllers; import com.simplon.esportdata.services.AdminService; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind....
/* * 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 ejerc1; import java.util.Scanner; /** * * @author examen */ public class Obra { String nombre; String autor; ...
/* * Copyright 2002-2021 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.driva.drivaapi.service.impl; import com.driva.drivaapi.exception.LessonNotFoundException; import com.driva.drivaapi.mapper.LessonMapper; import com.driva.drivaapi.mapper.dto.LessonDTO; import com.driva.drivaapi.model.lesson.Lesson; import com.driva.drivaapi.model.product.Product; import com.driva.drivaapi....
package unisinos.tradutores.antlr.main.analiser; import lombok.Builder; import lombok.Getter; import unisinos.tradutores.antlr.main.domain.Method; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import static java.util.Objects.isNull; ...
package picoplaca; import java.util.HashMap; public class DataMemory { private static HashMap<String, String> _daysPlate; private static HashMap<String, String> allowedHours; public static HashMap<String, String> get_daysPlate() { return _daysPlate; } public static HashMap<String, String> getAllowedHours()...
/************************************************ * * Author: Ralph Joachim * ************************************************/ package com.itembase.currency; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cache.annotation.EnableCaching; import org.springfram...
package com.example.web.client; import com.example.soap.ProductClient; import com.example.soap.product.ProductModel; import com.example.web.form.ProductForm; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Contro...
package cn.jpush.impl.im; import cn.jpush.kafka.MultiScheme; import cn.jpush.kafka.MultiSchemeFactory; public class SendSchemeFactory implements MultiSchemeFactory { @Override public MultiScheme createScheme() { return new SendScheme(); } }
package net.integration.zk; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.recipes.locks.InterProcessMutex; import org.apache.curator.retry.ExponentialBackoffRetry; import org.junit.After; import org.junit.Before; i...
package slimeknights.tconstruct.tools; import net.minecraft.entity.monster.EntitySlime; import slimeknights.tconstruct.library.traits.AbstractTrait; import slimeknights.tconstruct.tools.traits.TraitAlien; import slimeknights.tconstruct.tools.traits.TraitAquadynamic; import slimeknights.tconstruct.tools.traits.TraitAr...
package com.intel.realsense.librealsense; public class DisparityTransformFilter extends Filter { public DisparityTransformFilter(boolean transformToDisparity){ mHandle = nCreate(mQueue.getHandle(), transformToDisparity); } private static native long nCreate(long queueHandle, boolean transformToDi...
package com.doc.spring.custom; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; public class BeanToValidate implements Validator{ //Nice to have a name at least private String name; public boolean suppo...
package com.yxkj.facexradix.star; import java.util.List; public class MobPushBean { private String appkey; private String content; private int target; private int type; private List<Integer> plats; private List<String> registrationIds; private String data; private String extras; ...
/** * PayloadTypeResolver */ package com.bs.bod.converter; import java.util.Collection; import com.fasterxml.jackson.databind.DeserializationConfig; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.jsontype.NamedType; import com.fasterxml.jackson.databind.jsontype.TypeDeserializ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n; n=sc.nextInt(); int a[]=new int[n]; System.out.print("Elements in array: "); for(int j=0;j<n;j++) { a[j]=sc.nextInt(); ...
package com.vipvideo.ui.adpter; import android.view.View; import android.widget.TextView; import com.lixh.base.adapter.VBaseHolder; import com.vipvideo.R; import com.vipvideo.bean.TitleBean; import butterknife.Bind; /** * Created by Moushao on 2017/8/30. */ public class TitleHolder extends VBaseHolder<TitleBean>...
package meli.tmr.solarsystem.exceptions; public class NoWeatherFoundException extends RuntimeException { public NoWeatherFoundException(String msg){ super(msg); } }
package com.sshfortress.dao.system.mapper; import java.util.List; import java.util.Map; import com.sshfortress.common.beans.SysConfig; import com.sshfortress.common.beans.SysConfigKeyValue; public interface SysConfigMapper { int deleteByPrimaryKey(Long id); int insert(SysConfig record); ...
package com.joandora.demo.rpc_3; import java.util.UUID; import com.rabbitmq.client.AMQP.BasicProperties; import com.rabbitmq.client.AMQP.Queue.DeclareOk; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.QueueingConsumer...
package tool; import java.io.*; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Properties; import org.apache.log4j.Logger; /** * 读取/写入properties文件的工具类 */ public class PropertyOper { private static Logger logger = Logger.getLogger(Property...
package cc.ipotato.generic; /** * Created by Hello on 2017/11/13. */ class Message<T>{ private T note; public void setNote(T note) { this.note = note; } public T getNote() { return note; } } public class MessageTest { public static void main(String[] arg...
package br.com.juliafealves.agenda.ui.activities; public interface ConstantsActivities { String KEY_STUDENT = "student"; }
package com.test.heap; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * .堆化,从下至上,以新增为例 * @author YLine * * 2019年3月19日 下午7:45:03 */ public class SolutionHeapifyUp { /** * .创建一个,测试数据 * @return 数组,为了方便拓展,使用List */ public List<Integer> buildTestSource() { ...
/** * Copyright (C) 2008 Atlassian * * 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 t...
package org.valdi.entities.packets; import java.lang.reflect.InvocationTargetException; import org.bukkit.entity.Player; import org.valdi.entities.iDisguise; import com.comphenix.protocol.PacketType; import com.comphenix.protocol.ProtocolLibrary; import com.comphenix.protocol.ProtocolManager; import com.comphenix.pr...
package com.example.gopalawasthi.movielovers; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Tex...
package dwz.framework.timer.impl; import java.util.Collection; import java.util.Date; import dwz.framework.timer.TaskEngine; import dwz.framework.timer.TaskFactory; import dwz.framework.timer.TaskParse; import dwz.framework.timer.TaskUnit; /** * @Author: LCF * @Date: 2020/1/8 17:08 * @Package: dwz.framework.timer...
package orm.integ.dao.sql; public interface PageRequest { public int getStart(); public int getLimit(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package lab04; /** * * @author yancy */ public class DateAdvisor { public int rateMatch(Person me, Person match){ int match_rate = 0; return match_rate; } // public MyArrayList getMatc...
package com.GestiondesClub.services; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.GestiondesClub.dao.RoleEtudiantDao; import com.GestiondesClub.entities.RoleEtudiant; @Service public class RoleEtudiantServ { @Autowi...
import org.junit.Test; import static org.junit.Assert.*; public class TestOffByN { CharacterComparator offBy5 = new OffByN(5); @Test public void equalChars() { assertTrue(offBy5.equalChars('a', 'f')); assertFalse(offBy5.equalChars('a', 'b')); } }
package negocio.vo; public class Empleado { private Integer id; private String nombre; private Integer sueldo; private Integer codTienda; private Especialidad especialidad; public Empleado() { super(); } public Empleado(Integer id, String nombre, Integer sueldo, Integer codTienda, Especialidad espe...
package com.dokyme.alg4.sorting.priorityqueue; import com.dokyme.alg4.sorting.basic.Transaction; import edu.princeton.cs.algs4.Stack; import edu.princeton.cs.algs4.StdOut; import java.io.*; import java.util.Scanner; /** * Created by intellij IDEA.But customed by hand of Dokyme. * * @author dokym * @date 2018/5/8...
/** * This class is generated by jOOQ */ package schema.tables; import java.sql.Timestamp; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Schema; import org.jooq.Table; import org.jooq....
package com.nsbhasin.nowyouseeme.ui; import android.app.Application; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LiveData; import com.nsbhasin.nowyouseeme.data.Location; import com.nsbhasin.nowyouseeme.data.LocationRepository; import java.util.List; pub...
public class Main { public static void main(String[] args) { int costInKopecks = 20_00; int percent = 5; float amount = costInKopecks * percent / 100 / 100; System.out.println(amount); } }
import java.util.*; class shaurya { static boolean present(int num,int[] arr) { int count=arr.length; for(var i=0;i<count;i++) { if(arr[i]==num) { return true; } } return false; } public static int mi...
package mongodb.configuration; import org.springframework.beans.factory.DisposableBean; import org.springframework.data.mongodb.MongoDbFactory; import org.springframework.data.mongodb.core.MongoTemplate; /** * This is the base configuration for the Mongo Plugin. */ public abstract class MongoBaseConfiguration imple...
package edu.frostburg.cosc460; import java.util.Random; /** * * @author Matt * * Page Generator makes semi-random strings of integers from 0 to 9 that * are eventually returned in an array to be used in our testing class. */ public class PageGenerator { private int[] pageReference; //the array that will be...
package com.flushoutsolutions.foheart.data; /** * Created by Manuel on 10/08/2014. */ public class SendDataData { public int _id; public int fk_application; public int fk_user; public String table_name; public int row_id; public String record; public int sent; public Stri...
//wap a java application accept number in regurlar matrix form siz is 2X3 and print same? import java.util.*; class matrix { public static void main(String args[]) { Scanner x=new Scanner(System.in); int num[][]=new int[2][3]; int r,c; for(r=0;r<2;r++){ System.out.println("Inset Row Value"+r); for(c...
package View; import Model.MyModel; import Server.*; import ViewModel.MyViewModel; import javafx.application.Application; import javafx.event.EventHandler; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.input.KeyEvent; import javafx.stage.Stage; import javafx....
package diplomski.autoceste.services; import diplomski.autoceste.forms.DiscountDto; import diplomski.autoceste.models.Discount; import diplomski.autoceste.models.PrivateUser; import diplomski.autoceste.models.Vehicle; import diplomski.autoceste.models.VehicleDiscountLabel; import diplomski.autoceste.repositories.Disco...
package com.junzhao.base.utils; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.util.Log; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; impor...
package com.sunny.netty.chat.util; import java.util.UUID; /** * <Description> <br> * * @author Sunny<br> * @version 1.0<br> * @taskId: <br> * @createDate 2018/10/27 13:55 <br> * @see com.sunny.netty.chat.util <br> */ public class IDUtil { public static String randomId() { return UUI...