text stringlengths 10 2.72M |
|---|
/**
* Created with IntelliJ IDEA.
* User: daixing
* Date: 12-11-15
* Time: 下午11:16
* To change this template use File | Settings | File Templates.
*/
public class p1_1_33 {
public static void main(String[] args)throws MatrixSizeNotMatch
{
double[] x = {1,2,3,4,5};
double[] y = {1,2,3,4,5};... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class IfTest2 {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
/*int jumsu =7;
if(jumsu>=90)
System.out.println("수");
else if (jumsu>=80)
System.out.println("우");
else if(jumsu>=70)
System.out.p... |
package com.ifeng.recom.mixrecall.prerank.entity;
import com.ifeng.recom.mixrecall.prerank.constant.Constant;
import com.ifeng.recom.mixrecall.prerank.executor.Operator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
/**
* 特征类:定义特征抽取的方式和操作算子... |
package portal.listener;
import com.codeborne.selenide.Selenide;
import io.qameta.allure.Attachment;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import static com.codeborne.selenide.WebDriverRunner.getWebDriver;
import static org.openqa.selenium.logging.LogType.BROWSER;
public ... |
package irix.measurement.structure;
import irix.convertor.sections.MeasurementsSectional;
public class MeasurementsSectionalAttributes extends MeasurementsSectional /*implements MeasurementsSectionalAttributesImp*/ {
private String validAt;
public MeasurementsSectionalAttributes() {
}
publi... |
package com.blog.dusk.utils;
public class CodeStatus {
public final static String CODE_SUCCESS = "success";
public final static String CODE_FAILURE = "failure";
}
|
package ru.serdyuk.diff.entities;
import java.util.Optional;
import lombok.Builder;
import lombok.Value;
/**
* Main pojo class for the {@link ru.serdyuk.diff.controllers.DiffControllerV1}
* id - unique string
* left - first value
* right - second value
*/
@Value
@Builder
public class Diff {
String id;
... |
package domain;
import data.model.user.Message;
import java.util.Date;
import java.util.List;
public interface UserRepository {
void createNewMessage(String userName, String text, Date date);
List<Message> getMessagesListByUser(String userName);
void createFollow(String userName, String followedUserNam... |
package com.company;
public class Main {
public static void main(String[] args) {
System.out.println(hasEqualSum(1,1,1));
System.out.println(hasEqualSum(1,1,2));
System.out.println(hasEqualSum(1,-1,0));
}
public static boolean hasEqualSum(int num1,int num2,int num3){
re... |
package lotro.my.reports;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import ja... |
/*
* Copyright 2017 Goldman Sachs.
* 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... |
package com.mediafire.sdk.response_models.user;
import com.mediafire.sdk.response_models.ApiResponse;
public class UserSetAvatarResponse extends ApiResponse {
private String quick_key;
private String upload_key;
public String getQuickKey() {
return quick_key;
}
public String getUploadKey... |
package saboteur.state;
import java.util.LinkedList;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
import saboteur.GameStateMachine;
import saboteur.model.Game;
import saboteur.model.Operation;
import saboteur.model.Player;
import ... |
package com.karya.bean;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class MonthlyAttendSheetReportBean {
private int atsId;
@NotNull
@NotEmpty(message = "Please enter year")
private String attYear;
@NotNull
@NotEmpty(message = "Please enter emplo... |
package com.wd.myinfo;
public class textone {
}
|
import java.util.Scanner;
public class SumSeconds {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int firstTime = Integer.parseInt(scan.nextLine());
int secondTime = Integer.parseInt(scan.nextLine());
int thirdTime = Integer.parseInt(scan.nextLine(... |
/*
* Copyright 2003-2005 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
// 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.fragment;
import android.app.ProgressDialog;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.neur... |
package com.maliang.core.model;
public class Block extends MongodbModel {
public static final int TYPE_CODE = 1;
public static final int TYPE_HTML = 2;
private String name;
private String code;
/**
* 1:code
* 2:html
* ***/
private Integer type;
public String getName() {
return... |
package week3day1;
public class LearnOverload {
public void employeeInfo() {
String name = "Indhu";
System.out.println("employee info " + name);
}
public void employeeInfo(int id, String name) {
System.out.println("id: " + id);
System.out.println("name of the employee: " + name);
}
publ... |
package com.inn.catalogapplication.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.inn.catalogapplication.model.Category;
@Repository
public interface CategoryRepository extends JpaRepository<Category, Integer>{
}
|
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
/*
* 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 ITPM;
import static ITPM.Dashboard.Dash_UploadSpace;
import java.io.BufferedReader;
import java.io.IOException;
import java.io... |
package com.atmecs.employeedatabase.crudoperations;
import java.util.Scanner;
import org.hibernate.Session;
import org.hibernate.SessionException;
import com.atmecs.employeedatabase.entity.Employee;
import com.atmecs.employeedatabase.util.HibernateUtil;
public class DeleteData {
public void deleteData() {
Sess... |
package hard;
import java.awt.List;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
/**
*
* @author xiebi
*服务端
*功能:接受客户端发来的... |
package com.yan.coupons.dto;
public class UserDto {
long id;
String name;
}
|
package com.ism.projects.th;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Da... |
package vistas;
import objetos.proyectiles.Torpedo;
import ar.uba.fi.algo3.titiritero.ControladorJuego;
/*
* Vista para los torpedos simples
*/
public class VistaTorpedo extends VistaProyectiles {
public VistaTorpedo(Torpedo torpedo, ControladorJuego controlador) {
super(torpedo, controlador);
thi... |
/**
*
*/
package myProject.second;
public class grassTileLevel1 extends TileLevel1{
public grassTileLevel1( int id) {
super(loadImageLevel1.grass, id);
}
}
|
package com.lingtorp.characters.personalities;
import java.util.HashMap;
/**
* Created by AlexanderLingtorp on 03/12/14.
*/
public class AggressivePersonalityType implements PersonalityType {
private HashMap<String, String> dialogSet;
// Setup the approaches and replies.
public AggressivePersonalityTy... |
package com.training.utils;
import javax.xml.ws.Endpoint;
import com.training.services.DonationRequestService;
public class MyPublisher {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Endpoint.publish("http://localhost:5000/converter", new CurrencyConverterImpl());
... |
/**
*
*/
package com.zhouqi.service;
import com.zhouqi.entity.CfgTaskDetail;
import java.util.List;
/**
*
* <p>Title: TaskDetailService.java</p>
* <p>Description:</p>
* <p>Company:康成投资(中国)有线公司</p>
*
* @author zhouqi
* @date 2018年3月9日 上午11:49:39
*
*/
public interface TaskDetailService {
List<CfgTaskDet... |
package com.klaytn.caver.common;
import com.klaytn.caver.Caver;
import com.klaytn.caver.contract.SendOptions;
import com.klaytn.caver.kct.kip7.KIP7;
import com.klaytn.caver.kct.kip7.KIP7DeployParams;
import com.klaytn.caver.methods.response.TransactionReceipt;
import com.klaytn.caver.utils.Utils;
import com.klaytn.cav... |
package co.sblock.effects.effect.godtier.active;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import co.sblock.Sblock;
import co.sblock.effects.effect.BehaviorActive;
import co.sblock.effects.effect.BehaviorGodtier;
import co.sblock.effects.effect.Effect;
im... |
package com.zhanwei.java.test1;
public class Clazz {
public static void main(String[] args) throws Exception {
Class<Cat> c = Cat.class;
Class<Dog> g = (Class<Dog>) Class.forName("com.zhanwei.java.test1.Dog");
}
}
class Cat {
static{
System.out.println("cat is load");
}
}
class Dog{
static {
System.... |
package basicpractice;
public class Seven26{
public static void main(String[] args) {
}
static boolean addMatrix(int [][]x,int[][]y,int[][]z){
if(x.length != y.length ||y.length!=z.length)
{
return false;
}
for(int i=0;i<x.length;i++){
if(x[i].length !=y[i].length || y[i].length!=z[i].length){
... |
package com.Test.Testclass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
import org.openqa.selenium.WebDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.BaseClass.BaseClass1;
import walmartHomepage.Homepage;
public... |
package com.uu.searchengine.entity;
import javax.persistence.*;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
@Entity(name = "Image")
@Table(name = "image")
public class Image {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
long id;
@Column(co... |
package com.lxm.smartbutler.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Transformation;
/**
* Created by lxm on 17/2/15.
*/
public class PicassoUtils {
public static void loadImageView(... |
/*
* 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... |
package in.prashant.springsecurity.entities;
import lombok.Data;
import javax.persistence.*;
import java.util.Set;
@Entity
@Data
@Table(name = "user_table")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String firstName;
private String lastN... |
package com.wxt.designpattern.iterator.test01;
/**
* @Author: weixiaotao
* @ClassName ConcreteAggregate
* @Date: 2018/12/3 19:24
* @Description: 具体的聚合对象,实现创建相应迭代器对象的功能
*/
public class ConcreteAggregate extends Aggregate {
/**
* 示意,表示聚合对象具体的内容
*/
private String[] ss = null;
/**
* 构造方法,传入聚合对象具体的内容
* @pa... |
package com.school.sms.controller;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.springframework.core.io.FileSystemResource;
import org.springframework.stereotype.Con... |
package tm.controller;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextImpl;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.... |
package org.andrill.conop.core.constraints;
import org.andrill.conop.core.AbstractConfigurable;
import org.andrill.conop.core.Solution;
/**
* Performs no constraint checking.
*
* @author Josh Reed (jareed@andrill.org)
*/
public class NullConstraints extends AbstractConfigurable implements Constraints {
@Overri... |
package egovframework.adm.lcms.cts.service;
import java.util.Map;
public interface LcmsContentManageService {
public String selectContentPath( Map<String, Object> commandMap) throws Exception;
}
|
package com.springtraining.web;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.sprin... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark... |
package com.wdl.util;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.hibernate.criterion... |
package com.project.personaddress.domain.service;
import org.springframework.beans.BeanUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public... |
package org.cocos2dx.lib;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
/**
* 控制Cocos2dx图层 添加和删除动画
* Created by Dk on 16/6/2.
*/
public class Cocos2dxLayerContorl {
private static List<String> queue = new ArrayList<String>();
private String path;
private static boolean... |
package com.sferion.whitewater.ui.views.pigging;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.sferion.whitewater.backend.admin.PiggingEventAdmin;
import com.sferion.whitewater.backend.admin.PiggingUserAdmin;
import com.sferion.whitewater.backend.admin.PipelineAdmin;
import com.sferion... |
package com.tu.mysql.service;
import com.tu.mysql.model.Role;
/**
* @Auther: tuyongjian
* @Date: 2019/10/23 16:30
* @Description:
*/
public interface RoleService {
void add(Role role);
}
|
package com.gp.extract.twitter.labeler.models;
import com.gp.extract.twitter.Configuration;
import com.gp.extract.twitter.labeler.features.FeatureExtractor;
import com.gp.extract.twitter.labeler.features.Features;
import com.gp.extract.twitter.labeler.sequence.Sentence;
import com.gp.extract.twitter.labeler.sequence.T... |
package com.scriptingsystems.tutorialjava.poo.collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import com.scriptingsystems.tutorialjava.poo.interfaces.Racional;
public class SetTest {
/**
*
* @see Set para ordenar hace uso de "equals" y "hashCode"
... |
package com.fgtit.app;
public class LogItem {
public int userid;
public String username="";
public int status1;
public int status2;
public String datetime;
}
|
package utils;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import ... |
package com.receiptify;
import android.Manifest;
import android.app.Application;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android... |
package com.cskaoyan.service;
import com.cskaoyan.bean.AllVo;
import com.cskaoyan.bean.vo.StatusVo;
import com.cskaoyan.bean.user.UserRegisterVo;
import com.cskaoyan.bean.user.UserUpdate;
import com.cskaoyan.bean.vo.Vo;
/**
* @Author: yyc
* @Date: 2019/6/4 17:03
*/
public interface UserService {
StatusVo regis... |
package com.almondtools.stringbench.incubation;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import com.almondtools.stringbench.BSBoyerMooreHorspoolBenchmark;
import com.almondtools.stringbench.CompareResultNotAccepted;
import com.almondtools.stringbench.SinglePatter... |
package cn.jiucaituan.spider.script;
import java.util.List;
import java.util.Map;
import cn.jiucaituan.common.JdbcExecutor;
import cn.jiucaituan.common.QueueFactory;
import cn.jiucaituan.vo.Msg;
public class StockF10Script {
public StockF10Script() {
jdbcExecutor = new JdbcExecutor();
}
privat... |
package Resources;
import java.sql.Date;
/**
*
* @author krismaini
*/
public class PickUpOrder {
private int orderID, customerID;
private Date startDate, finishDate;
public PickUpOrder(int orderID, int customerID, Date startDate, Date finishDate) {
this.orderID = orderID;
this.custome... |
package net.sf.throughglass.utils;
/**
* Created by yowenlove on 14-8-2.
*/
public class CustomTag {
public static String make(String tag) {
return "throughglass." + tag;
}
}
|
package com.test.fei;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.os.Bundle;
import android.view.View;
public class GeometryActivity extends Activity {
@Over... |
package domain;
import java.util.List;
public class StudentEntity {
private String name;
private List<GroupEntity> groups;
private List<String> phoneNumbers;
private List<ParentEntity> parents;
public StudentEntity(String name) {
this.name = name;
}
public String getName() {
... |
/*
* 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 scl.oms.outagemap;
import com.esri.core.geometry.Point;
import com.esri.core.geometry.Polygon;
import java.io.IOException;
imp... |
package kredivation.mrchai.component;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.annotation.StringRes;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayo... |
//Jesus Rodriguez
//ITC 115 Winter 2020
// 2/09/2020
/* Write a method called season that takes as parameters two integers representing
* a month and day and returns a String indicating the season for that month and day.
* Assume that the month is specified as an integer between 1 and 12 (1 for January,
* 2 ... |
package networking;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
public class EchoObjectServer extends EchoServer{
void processStream(InputStream is, OutputStream os)
{
System.out.println("Ech... |
package com.infoworks.lab.client.okhttp;
import com.infoworks.lab.exceptions.HttpInvocationException;
import com.infoworks.lab.rest.breaker.CircuitBreaker;
import com.infoworks.lab.rest.models.Message;
import com.infoworks.lab.rest.models.QueryParam;
import com.infoworks.lab.rest.template.HttpInteractor;
import com.in... |
package ui.system;
import controller.MainWindowController;
import javafx.scene.control.TextArea;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.loadui.testfx.GuiTest.find;
/**
* Created by Алексей on 06.01.2017.
*/
public class UserWorkingUiTesting ex... |
package cl.sportapp.evaluation.dao;
import cl.sportapp.evaluation.entitie.Paciente;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PacienteDao extends JpaRepository<Paciente, Long> {
}
|
package com.demo.nopcommerce.stepdefs;
import com.demo.nopcommerce.pages.CartPage;
import com.demo.nopcommerce.pages.HomePage;
import com.demo.nopcommerce.pages.LoginPage;
import cucumber.api.PendingException;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import o... |
package asa.client;
import asa.client.DTO.GameData;
import asa.client.resources.Resource;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.awt.image.ImageObserver;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import j... |
package com.intel.realsense.librealsense;
public class FrameSet extends LrsClass {
private int mSize = 0;
public FrameSet(long handle) {
mHandle = handle;
mSize = nFrameCount(mHandle);
}
public Frame first(StreamType type) {
return first(type, StreamFormat.ANY);
}
pub... |
package com.utils.streamjava7.classes;
import com.utils.streamjava7.collection.Pipeline;
import com.utils.streamjava7.interfaces.Function;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.*;
public class ParallelStream<T> extends Stream<T> {
private static final Integer chun... |
/**
*
* @author Shashwat Koranne
*
*/
public class InsertionSort {
public static int[] insertSort(int[] array) {
int length = array.length;
for (int i = 1; i < length; i++) {
for (int j = i; j > 0; j--) {
if (array[j] >= array[j-1]) {
break;
} else {
array = swap(array, j, j-1);
}
... |
package com.kh.jd.account;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.... |
package e.eric.messengerv3;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import java.util.ArrayList;
public class Contacts extends AppCompatActivity {
... |
package interview.huawei.B;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.sun.scenario.effect.impl.state.AccessHelper;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(Sys... |
package core.exception;
/**
* @框架唯一的升级和技术支持地址:https://item.taobao.com/item.htm?spm=a230r.7195193.1997079397.8.wNJFq2&id=551763724593&abbucket=20
*/
public interface ExceptionCode {
public String getCode();
}
|
/*
* 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... |
import java.util.Scanner;
/*Problem Statement:
Create a two dimensional character array which will accept only two characters X or O. populate
array with different combinations of X and O characters. If Same character appears at either
diagonal position or in the same line, return that character.
For eg.
X O O
O X O
... |
package com.project.repos;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.project.entities.Category;
import com.project.entities.Product;
import com.project.entities.Provider;
import com.project.entities.Status;
//data access object interface for product
//impl... |
package com.tsuro.utils;
import com.tsuro.board.IBoard;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
import lombok.experimental.UtilityClass;
/**
* Contains utility functions for {@link IBoard}.
*/
@UtilityClass
public class BoardUtils {
/**
* Gets all of the {@link Point}s on the... |
/**
* 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 crushstudio.crush_studio.service.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import crushstudio.crush_studio.DTO.UserDTO;
import crushstudio.crush_studio.config.mapper.Mapper;
import crushstudio.crush_studio.entity.User;
import crushstudio.crush_studio.repository.UserRepository;
import cru... |
package edu.udacity.java.nano;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.*;
import org.junit.runner.RunWith;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.op... |
package org.point85.domain.proficy;
import java.util.List;
import com.google.gson.annotations.SerializedName;
/**
* Serialized list of tag names
*
*/
public class Tags extends TagError {
@SerializedName(value = "Tags")
private List<String> tagNames;
public List<String> getTags() {
return tagNames;
}
}
|
package monopoly;
public class Square {
private String name;
private Square nextSquare;
private int index;
public Square(String name, int index) {
this.name = name;
this.index = index;
}
public void setNextSquare(Square s) {
nextSquare = s;
}
public Square getNextSquare() {
... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
package com.stk123.model;
import java.io.Serializable;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import com.stk123.service.ServiceConstant;
import com.stk123.model.bo.StkUser;
import com.stk123.common.db.util.sequence.SequenceUtils;
import com.stk123.common.util.JdbcUtils;
import ... |
/*
* 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.example.jwtdemo2.controllers;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import com.example.jwtdemo2.models.*;
import com.example.jwtdemo2.repository.CreatorRepository;
import com.example.jwtdemo2.services.MovieRa... |
package edu.student.page.javin;
import edu.jenks.dist.student.*;
/**
* Write a description of class Student here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Student extends AbstractStudent
{
private double testScore1 = 0.0;
private double testScore2 = 0.0;
private double te... |
package com.github.olly.workshop.trafficgen;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.... |
package com.hb.framework.system.service;
import java.text.ParseException;
import java.util.List;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.Trigger;
import org.springframework.beans.factory.annotation.Autowired;
import org.... |
package question5_oneEditAway;
import java.util.Arrays;
public class Method1 {
public boolean oneEditAway(String first, String second) {
int firstLen = first.length();
int secondLen = second.length();
if (firstLen == 0 && secondLen == 0) {
return true;
}
int a... |
package gil.server.data;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import javax.json.JsonReader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List... |
package com.goldenasia.lottery.data;
import java.util.List;
/**
* Created by Gan on 2017/10/26.
*/
public class GaGameListResponse {
/**
* list : [{"ga_id":"39","user_id":"56911","username":"zdavy","top_id":"56911","belong_date":"2016-11-10","last_ga_balance":"0","ga_balance":"12010","game_id":"101","ga_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.