text
stringlengths
10
2.72M
package com.tencent.tencentmap.mapsdk.a; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Build; import android.os.Build.VERSION; import android.os.Process; import andro...
package game.controllers; import desktop_resources.GUI; import game.Dice; import game.Player; public class JailController { /** *metode der holder styr på spilleren i fængsel *tjekker først hvor lang tid de har været i fængsel *giver så valget mellem at slå 2 ens eller betale *hvis de ikke kommer ud opdatere...
package com.tfjybj.integral.constant; /** * @program: integralV3.0-sprint1.0 * @description: service错误消息 * @author: 赵雷 * @create: 2019-10-05 09:57 **/ public class ErrorMessageConstant { public static final String AddPoints_Point_Less="该用户总积分不足"; public static final String AddPoints_GivingRecord_Fail="存入Redis被加...
package Controllers; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import Models.ForgotPassword; import dao.ForgotPassw...
package com.hotmail.at.jablonski.michal.shoppinglist.ui.details.listAdapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation...
package cn.timebusker.web; import java.util.concurrent.Future; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org...
// assignment 9 // pair p134 // Singh, Bhavneet // singhb // Wang, Shiyu // shiyu import java.util.Comparator; //This class represents a comparator for Strings class StringComparator implements Comparator<String> { /* Template: * * Fields: * None * * Methods: * ...this.compare...
package com.fang.example.spring.di; import com.fang.example.spring.di.util.BeanEntry; import com.fang.example.spring.di.util.ConfigGenerator; import com.fang.example.spring.di.util.EntryGenerator; import org.springframework.context.support.FileSystemXmlApplicationContext; /** * Created by andy on 4/2/16. */ public ...
/* * Copyright (C) 2015 Miquel Sas * * 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 License, or (at your option) any later * version. * * This program is dis...
package UnionFInd; import java.util.Scanner; //Weighted quick union with path compression // Hay n elementos en una lista con su indice, cuando se conectan dos elementos el indice del arbol más pequeño de uno, definido en otra lista) apunta al siguiente, creando arboles con ramas no tan alejadas de la raiz // Inicial...
package setServer; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.Iterator; import java.util.concurrent.ConcurrentHashMap; import setGame.Game; public class GameRoom implements Comparable<GameRoom> { // Used for server-side house keeping // Transi...
package dao; import entity.Category; import java.util.List; public interface CategoryDao { List<Category> getAllCategory(); Category read(long categoryId); void saveOrUpdate(Category category); void delete(long id); }
/** * Copyright 2007 Jens Dietrich 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 in writin...
/** * */ package com.ricex.cartracker.androidrequester.request; import com.ricex.cartracker.androidrequester.request.exception.RequestException; /** * @author Mitchell Caisse * */ public interface Request<T> { /** Executes the request synchronously and returns the results of the request * * @return The r...
package org.tc; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.impl.client.CloseableH...
package mapUtils; import gate.*; import gate.util.GateException; import org.springframework.util.Assert; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.Map; public class CreateMapToModify { private static f...
package com.zihui.cwoa.system.service; import com.zihui.cwoa.system.dao.sys_user_roleMapper; import com.zihui.cwoa.system.pojo.sys_user_role; import org.springframework.stereotype.Service; import javax.annotation.Resource; @Service public class sys_user_roleService { @Resource private sys_user...
package com.tencent.mm.plugin.setting.ui.setting; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import com.tencent.mm.kernel.g; import com.tencent.mm.plugin.setting.model.h; class SettingsModifyUserAuthUI$2 implements OnCancelListener { final /* synthetic */ Sett...
package rhtn_homework; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; public class SWEA_10888_음식배달 { private static StringBuilder sb = new StringBuilder(); private static int N,ans, an...
package com.example.algorithm; /** * 作者:Created by 武泓吉 on 2020/4/28. */ public class SortAlgorithm { /** * 冒泡排序 从小到大 */ public int[] bubbleSort(int[] a){ for (int i=0;i<a.length-1;i++) { for (int j=0;j<a.length-1-i;j++) { if (a[j]>a[j+1]) { int tem=a[j]; a[j]=a[j+1]; a[j+1]=tem; } ...
package org.chail.orc.output; import org.chail.orc.OrcField; import org.chail.orc.utils.OrcUtils; import org.pentaho.di.core.RowMetaAndData; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.row.Val...
package com.sunzequn.sdfs.socket.server; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; /** * Created by Sloriac on 2016/12/18. * */ public class ServerThread extends Thread { private SockServer sockServer; private ServerSocket serverSocket; public ServerThread(Sock...
package monopoly.model.deck.card; import monopoly.model.board.Board; import monopoly.model.field.Property; import monopoly.model.player.Player; import monopoly.model.player.State; import monopoly.model.player.changer.PlayerChanger; import org.junit.Test; import java.util.Random; import static org.junit.Assert.assert...
package com.thatman.testservice.service.impl; import com.thatman.testservice.Entity.User; import com.thatman.testservice.client.TestServiceTwoClient; import com.thatman.testservice.service.TestService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Servi...
package com.tencent.mm.plugin.messenger.foundation.a.a; import com.tencent.mm.storage.ar; public interface c { ar Gx(String str); boolean m(long j, String str); }
package com.phplogin.sidag.myapplication; import java.text.SimpleDateFormat; import java.util.Calendar; /** * Created by Siddhant on 10/26/2015. */ public class TimeStamp { int year; int month; int day; int time; public TimeStamp(String timestamp){ String[] date_time = timestamp.split(...
package com.tencent.mm.plugin.game.wepkg.utils; import com.tencent.mm.g.a.ou; import com.tencent.mm.kernel.g; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.storage.aa.a; class c$1 extends c<ou>...
package codex.presentation; import codex.component.editor.GeneralEditor; import codex.component.render.GeneralRenderer; import codex.editor.IEditor; import codex.type.Bool; import codex.type.IComplexType; import javax.swing.*; import javax.swing.table.TableModel; import java.awt.*; import java.util.Arrays; import java...
package com.bierocratie.model.accounting; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.NotNull; import java.io.Serializable; /** * Created with IntelliJ IDEA. * User: pir * Date...
/** * * Question - Next Number * Created by Yu Zheng on 10/1/2015 * * idea: just check the next number one by one, if the number of 1 for this number * is equal to the original number, print it out. * */ public class Solution04 { // compute the number of 1 public static int count_one(int x){ int cnt =...
package com.example.bottomnav; import android.os.Parcel; import android.os.Parcelable; public class SmurfsModel implements Parcelable { private String name; private String summary; private int photo; public SmurfsModel(){} protected SmurfsModel(Parcel in){ name = in.readString(); ...
package com.vietmedia365.voaapp.db; /** * Created by pat109 on 11/15/2014. */ public class DBUtils { }
package com.zznode.opentnms.isearch.routeAlgorithm.utils; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy; public class PropertiesHander { private stati...
package com.beiyelin.sms.service.impl; import com.beiyelin.commonsql.jpa.BaseDomainCRUDServiceImpl; import com.beiyelin.sms.entity.SmsLog; import com.beiyelin.sms.service.SmsLogService; import org.springframework.stereotype.Service; /** * @Description: * @Author: newmann * @Date: Created in 22:35 2018-02-11 */ @S...
package thsst.calvis.configuration.model.engine; import thsst.calvis.configuration.controller.HandleConfigFunctions; import thsst.calvis.configuration.model.errorlogging.ErrorLogger; import thsst.calvis.configuration.model.errorlogging.ErrorMessage; import thsst.calvis.configuration.model.errorlogging.ErrorMessageList...
package com.tencent.xweb; import android.content.Context; import com.tencent.xweb.c.b.b; public final class c { private static c vzW; static b vzX; public static synchronized c ij(Context context) { c cVar; synchronized (c.class) { if (vzW == null) { vzW = new ...
package collection.visualizer.layout.nodes; import bus.uigen.shapes.ALineModel; import bus.uigen.shapes.Shape; public class ALinearRoot extends AnAbstractLinearElement implements LinearElement { public ALinearRoot(Shape _s, Object _o, ALineModel _l, ALineModel _l2) { super(_s, _o, _l, _l2); } public void ...
package com.cms.common.utils; /** * @author lansb 静态环境变量 */ public class Environment { public static final String ADMIN_USER_CODE = "admin";//开发专用账号 public static final String LOGIN_NO_PRIV = "-100";//登录后可访问 public static final String ADMIN_PRIV = "-200";//admin专属权限,开发组专用 public static final String NO_PRIV = "...
package com.tinnova.exercicio3; public class CalculoFatorial { private CalculoFatorial() { // não instanciar } /** * Método para calcular o fatorial * * @param Long fatorial * @return Long fatorial */ public static Long calculoFatorial(Long fatorial) { Long numeroInicial = 1L; for (int i = 1; i ...
package fonepay.task.ODSBE.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.CorsConfigurationSource; import org.springframework.web.cors.UrlBasedCorsConfigu...
package com.dishcuss.foodie.hub.Models; import io.realm.RealmObject; /** * Created by Naeem Ibrahim on 8/4/2016. */ public class FoodsCategory extends RealmObject { int id; String categoryName; public FoodsCategory() { } public int getId() { return id; } public void setId(int...
package littleservantmod.api.profession.behavior; import littleservantmod.api.IServant; import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.util.ResourceLocation; import net.minecraft.util.text.translation.I18n; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge....
package com.werth; import java.io.*; import java.util.*; // Suppose we have some input data describing a graph of relationships between parents and children over multiple generations. The data is formatted as a list of (parent, child) pairs, where each individual is assigned a unique positive integer identifier. // /...
package reporting; import java.util.UUID; import java.util.ArrayList; import shipping.ShippingService; /** * The Class ReportingSystem. class used to create different reports based on data stored at shipping Service side */ public abstract class ReportingSystem { /** The shipping services used. */...
import java.awt.Point; import java.util.ArrayList; import java.util.List; public interface ConvexHullAlgorithm { List<GeoRef> execute(List<GeoRef> points); }
package com.ytt.springcoredemo.dao.mapper.base; import com.ytt.springcoredemo.dao.mapper.core.CoreMapper; import com.ytt.springcoredemo.model.po.User; import org.apache.ibatis.annotations.Mapper; /** * @Author: aaron * @Descriotion: * @Date: 22:38 2019/7/27 * @Modiflid By: */ //@Mapper public interface UserMappe...
package testdata; public class ConfigData { public static String ENVIRONMENT="CLOUD"; public static String url="https://mingletrial06-portal.mingledev.infor.com/AUTOMOBQA_TST"; public static String PASSWORD="Password1!"; public static String USER1="mingleqatest11@gmail.com"; public static String USER2=...
package com.project.database.controller; import com.project.database.dto.bigunets.BigunetsReport; import com.project.database.dto.bigunets.info.BigunetsInfo; import com.project.database.dto.bigunets.shortInfo.BigunetsShortInfo; import com.project.database.exception.StatementNotExist; import com.project.database.servic...
package jbyco.optimization.jump; import jbyco.lib.Utils; import jbyco.optimization.Statistics; import jbyco.optimization.common.ActionLoader; import jbyco.optimization.common.MethodTransformer; import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.MethodNode; import org.objectweb.asm.tree.TableSwitchIn...
package com.tencent.mm.plugin.fav.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; class FavoriteIndexUI$11 implements OnClickListener { final /* synthetic */ FavoriteIndexUI jbh; FavoriteIndexUI$11(FavoriteIndexUI favoriteInde...
package net.minecraft.item; import javax.annotation.Nullable; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityHanging; import net.minecraft.entity.item.EntityItemFrame; import net.minecraft.entity.item.EntityPainting; import net.minecraft.entity.play...
package com.grability.test.dlmontano.grabilitytest.dao.database; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.grability.test.dlmontano.grabilitytest.database.GrabilityTestSQLiteH...
package sample.Emulator; public class SPI { public static Port Port = new Port(); }
package polarpelican.units; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; import java.util.Scanner; import java.util.logging.Level; import java.util.logging.Logger; import org.json.simple.JSONArray; import org.json.simple....
package nb.service; import nb.domain.*; import nb.queryDomain.BidDetails; import org.springframework.web.multipart.MultipartFile; import java.io.File; import java.io.IOException; import java.util.List; public interface ReportService { File makeDodatok(List<Asset> assetList, List<Credit> creditList, String start...
package com.thewalletlist.addressbook; import java.io.*; import java.util.ArrayList; import android.util.Log; import android.content.Context; import org.json.*; public class AddressBook implements Serializable { private static String FILENAME = "addressbook"; private ArrayList<AddressEntry> mAddressBook = new Ar...
public interface PassengersAuto { default void transportPassengers(){ System.out.println("transport Passengers"); }; }
package ba.bitcamp.LabS09D02; /** * * @author nermingraca * */ public class StudentTest { public static void main(String[] args) { Student first = new Student("Neldin", 1, 8.2); Student second = new Student("Mustafa", 11, 7.2); Student third = new Student("Hikmet", 1, 8.2); Student fourth = new Student("...
package com.pangpang6.hadoop.zookeeper; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; /** * Created by jiangjiguang on 2018/2/12. */ public class ZKConstructAA implements Watcher { @Override public void process(WatchedEvent watchedEvent) { } }
package org.trivee.fb2pdf; @SuppressWarnings("serial") public class FB2toPDFException extends Exception { public FB2toPDFException(String message) { super(message); } }
package carnival.gusac.com.gusaccarnival40; /** * Created by Messi10 on 31-Jan-15. */ /*This class provides an abstraction for an event's title,description and its image. These properties are set using a custom list view adapter(MyEventAdapter). */ public class EventInfo { String title; String description;...
package my.battleships.GameField; import my.battleships.ConsoleHelper; import my.battleships.Exeptions.ShipSetupException; import my.battleships.Exeptions.WrongCoordinatesException; import my.battleships.Players.FiringResult; import my.battleships.ships.*; import java.util.LinkedList; import java.util.List; import j...
package Controller; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import view.Fenetre; public class Controller { public Controller(Fenetre fenetre) { fenetre.getView().addMouseListener(new MouseListener() { @Override public void mouseClicked(MouseEvent e) { fenetre.handleMouseC...
abstract class Kort implements Comparable<Kort>, Cloneable { protected String firstName; protected String lastName; private int pinkode; private static int kortnummer; private static int kort = 0; private static boolean sperretKort = false; public Kort(String firstName, String las...
package me.dao; import me.entity.UserEntity; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; public interface UserDao { //@Select("select * from user") List<UserEntity> selectList(@Param("name") String xm ,@Param("ids")...
import java.util.Scanner; class Address{ String city, state, country; int zip; public Address(String city, String state, int zip, String country){ this.city = city; this.state = state; this.zip = zip; this.country = country; } public void setCity(String city)...
package com.artcraft.mavr.mechdroid; import android.service.wallpaper.WallpaperService; /** * Created by mavr on 11/15/14. */ public class liveWallpaper extends WallpaperService { protected class liveWallpaperEngine extends Engine { } @Override public Engine onCreateEngine() { return new l...
package com.ana.models; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.List; public class Section implements Serializable { @SerializedName("Text") @Expose private String text; @SerializedName("Id") @Exp...
/* * Copyright (C) 2015 Miquel Sas * * 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 License, or (at your option) any later * version. * * This program is d...
/*package ViewController; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.swing.*; import java.io.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.imageio.ImageIO; import java...
package com.monitora.monitoralog; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class MonitoralogApiApplication { public static void main(String[] args) { SpringApplication.run(MonitoralogApiApplication.class, ...
package com.gyk.s2h.varmisin; import android.content.Intent; import android.graphics.Color; import android.net.Uri; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolb...
package checkers.studentCLients; import java.util.ArrayList; import checkers.*; public class CheckersClientRandomMover implements CheckersClient{ Move lastMove = null; int MyColor; int [][] boardBeforLastMove = new int [][] { { 0, 1, 0, 1, 0, 1, 0, 1}, { 1, 0, 1, 0, 1, 0, 1, 0}, { 0, 1, ...
package vrcube; import processing.core.PApplet; import processing.vr.*; public class Sketch extends PApplet { public void settings() { fullScreen(STEREO); } public void setup() { } public void draw() { background(157); lights(); translate(width/2, height/2); rotateX(frameCount * 0.01f)...
package com.locadoraveiculosweb.util.jpa; import static org.apache.commons.lang3.ObjectUtils.isEmpty; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.PostConstruct; import javax.ejb.Lock; import javax.ejb.LockType; import javax.ejb.Schedule; import javax.ejb...
package com.ld.community.service.impl; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ld.common.dao.PublicInformationModelMapper; import com.ld.common.model.PublicInformationModel; import com.ld....
package logger.writer; import logger.sink.ISink; public abstract class AbstractWriter { final ISink sink; public AbstractWriter(ISink sink) { this.sink = sink; } public abstract void logWrite(String message); }
/* * 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.main.controller; import com.main.model.Feedback; import com.main.service.AllInsertService; import com.main.service.AllUpda...
package co.paikama.wfa; import org.springframework.http.client.reactive.ReactorClientHttpConnector; import org.springframework.web.reactive.function.BodyInserters; import org.springframework.web.reactive.function.client.ClientRequest; import org.springframework.web.reactive.function.client.ClientResponse; import org.s...
/** * Déclaration de la classe Commande : */ package entities.model; import java.io.Serializable; import java.util.Date; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Generat...
package com.tencent.mm.plugin.appbrand.jsapi.audio; import com.tencent.mm.g.a.s; import com.tencent.mm.plugin.appbrand.jsapi.e; import com.tencent.mm.plugin.appbrand.l; import com.tencent.mm.plugin.appbrand.media.a.f; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.z.a; import com.tencent.mm.z.b; impo...
package com.dealership.entity; // Generated 2015-2-19 12:56:59 by Hibernate Tools 3.4.0.CR1 import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import javax.persistence.*; import java.util.Date; import java.util.HashSet; import java.util.Set; /** * TUser generated by hbm2java */ @JsonIgnoreProperties({...
package Collections; import java.util.Enumeration; import java.util.Hashtable; import java.util.Set; //it is simplar to HashMap,but it is synchronised // stores the values on the key and value format // key----->object ----Hashcode----> value public class HashTableConcept { public static void main(Stri...
package jp.smartcompany.job.modules.core.pojo.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import jp.smartcompany.job.modules.base.pojo.entity.BaseBean; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToStri...
package uk.ac.ucl.umobile; import android.Manifest; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotati...
package com.hb.rssai.bean; import java.util.List; /** * Created by Administrator on 2017/8/18 0018. */ public class ResDataGroup { /** * retObj : {"total":7,"rows":[{"val":1,"deleteFlag":false,"name":"新闻","id":"783a53b2-836e-11e7-a746-206a8a32e7b2"},{"val":2,"deleteFlag":false,"name":"科技","id":"86a5bfb1-...
package com.accp.pub.pojo; import java.util.Date; public class dorm { private Integer dormid; private String dormname; private Integer domainid; private Integer loucheng; private Integer userid; private Integer dormsex; private Integer berthcount; private Integer yingcount; ...
package com.tomek.controller; import com.tomek.data.Animal; import com.tomek.data.Dog; import com.tomek.util.ConnectionProvider; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import javax.servlet.ServletException; import javax.s...
/** * @author * This is a base class which other base classes will extend to get the driver instance */ package com.scholastic.torque.pageobjects; import org.openqa.selenium.WebDriver; public abstract class BaseClass { public static WebDriver driver; public static boolean bResult; //Constructor public BaseCl...
package com.example.flutter_module.host; import android.os.Bundle; import android.os.PersistableBundle; import org.jetbrains.annotations.NotNull; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import io.flutter.embedding.android.FlutterActivity; import io.flutter.embedding.engine.FlutterE...
package woc.assignment.one; public class SumNumbers { public static void main(String[] args) { Integer result = 0; for(int i=0;i<args.length;i++) result += Integer.valueOf(args[i]); System.out.println(result); } }
package src.core.java.demo.wrapper; /** * Primitive type ---> [Wrapper class] ---> Object type * * Each data has respective primitive class * byte --> {@link Byte} * short --> {@link Short} * int --> {@link Integer} * char --> Character * long --> {@link Long} * double -->{@link Double} */ /** *...
package cn.edu.sdjzu.xg.bysj.service; import cn.edu.sdjzu.xg.bysj.dao.ActorDao; import cn.edu.sdjzu.xg.bysj.domain.authority.Actor; import lombok.Cleanup; import util.JdbcHelper; import java.sql.Connection; import java.sql.SQLException; public final class ActorService { private static ActorDao actorDao = ActorD...
package com.lr; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.cache.CacheManager; import org.springf...
package org.motechproject.server.svc; import org.motechproject.server.model.MessageProgram; public interface MessageProgramService { MessageProgram program(String programName); }
package com.hason.dtp.account.point.service; /** * 积分业务接口 * * @author Huanghs * @since 2.0 * @date 2017/11/15 */ public interface PointService { /** * (幂等)为新注册用户增加积分 * * @param userId 用户ID * @param add 增加的积分 * @return User */ void addRegistPoint(Long userId, int add); }
package com.koreait.model; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.koreait.dao.MemberDao; import com.koreait.dto.MemberDto; public class JoinAction implements Action { @Override public String command(HttpServletRequest request, HttpServlet...
package jiwoo.roomBoard; import jiwoo.database.DBcon; import java.sql.SQLException; public class roomBoard { public DBcon db; public roomBoard(){ db = new DBcon(); } public void insertReview(String title, String content){ String sql = "Insert into roomboard (title,content,views,uid) ...
/* * UniTime 3.2 - 3.5 (University Timetabling Application) * Copyright (C) 2008 - 2013, UniTime LLC, and individual contributors * as indicated by the @authors tag. * * 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 * ...
package com.infotec.ses; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("cp") public class CpResource { CpRepositorio repo = new CpRepositorio(); @GET @Produ...