text stringlengths 10 2.72M |
|---|
package com.simha.springBootawslambda;
import java.util.List;
import java.util.function.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.an... |
package com.example.timemate;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.Activity;
import android.content.Context;
import android.os.AsyncTask;
import... |
/*
* 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 lambda;
public class MyQuickSort<T> {
private T array[];
private int length;
private Functional<T... |
package com.duofei.beans.circularDepend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @author duofei
* @date 2020/7/16
*/
@Component
public class ServiceB {
{
System.out.println("serviceB" + 1);
}
public ServiceB(){
... |
package com.tencent.mm.plugin.mall.ui;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.bg.d;
import com.tencent.mm.model.q;
import com.tencent.mm.platformtools.ab;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.c.cc... |
package com.simbircite.demo.util.spring;
import java.beans.PropertyEditorSupport;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
public class CustomDateTimeEditor extends PropertyEditorSupport {
DateTimeFormatter formatter = null;
public CustomDateTimeEditor(DateTimeFormatter... |
/* Use these two sites for help understanding how an Illinois Driver's license number is created (these will be used in the Person class, not in this one)
http://www.highprogrammer.com/alan/numbers/dl_us_shared.html
http://www.highprogregardscom/alan/numbers/soundex.html
*/
/* A person should have a first name, last ... |
package me.ductrader.javapractice;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Human implements Comparable<Human> {
private String name;
private int salary;
public Human(String name, int salary) {
this.name = name;
this.salary = salary;
}
... |
package domain;
// Generated Jan 20, 2010 12:31:25 AM by Hibernate Tools 3.2.1.GA
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.... |
class Hw7_1{
public static void main (String [] args){
int [] scores = new int [50];
int [] hist = new int [10];
for(int i=0; i<scores.length; i++){
scores[i]=(int)(Math.random()*101);
if (scores[i]==100) hist[9]++;
else hist[scores[i]/10]++;
}
for(int i=0;i<10 ;i++){
System.out.printf("%2d:", i*... |
package com.philippe.app.service.json;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jsonpatch.JsonPatchException;
import java.io.IOException;
public interface JsonService {
/**
* To provide differences between 2 JSON Strings initialState and newState.
*/
JsonNode provideDif... |
package it.univaq.rtv.Model;
import java.util.Random;
public class SingletonDado {
private static SingletonDado istance = null;
private Random numero;
private int lati;
/**
* @return
*/
public static SingletonDado getIstance(){
if(istance==null){
istance = new SingletonD... |
package com.example.revzik.dosimeter;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.RadioGroup;
import android.wid... |
package bridge.design.pattern.example1;
public class BridgePatternTest {
public static void main(String args[]){
Shape circle=new Circle();
Pattern solidPattern=new SolidFillPattern();
circle.applyPattern(solidPattern);
circle.draw();
Shape triangle=new Triangle();
Pattern strippedPatter... |
package br.com.giorgetti.games.squareplatform.gameobjects.interaction.auto;
import br.com.giorgetti.games.squareplatform.gameobjects.sprite.Animation;
import br.com.giorgetti.games.squareplatform.main.GamePanel;
import br.com.giorgetti.games.squareplatform.media.MediaPlayer;
import java.awt.*;
/**
* Coin that gives... |
package com.esc.fms.entity;
public class RoleRefPermission {
private Integer recordID;
private Integer roleID;
private Integer permissionID;
public Integer getRecordID() {
return recordID;
}
public void setRecordID(Integer recordID) {
this.recordID = recordID;
}
pub... |
package scriptinterface.execution.returnvalues;
/**
* Can be returned by a function call. This includes results, errors etc.
*/
public abstract class ExecutionReturn {
/**
* Indicates, that there is no value. Can for example be returned in functions which do not return a result.
*/
publi... |
package com.sparknetworks.loveos.domain;
import java.net.URI;
public class UserMatched {
private Profile relatedProfile;
private URI mainPhotoUrl;
private boolean favorited;
private String displayName;
private Integer contactsExchanged;
private Double compatibilityScore;
private Integer a... |
package action;
import dto.Cv;
import dto.Page;
import dto.Teacher;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import o... |
/**
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.business.impl.comment;
import java.util.List;
import javax.persistence.EntityManager;
import net.nan21.dnet.core.api.session.Session;
import... |
package genopt.ricardo.simulacao;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;
import java.util.TreeMap;
public final class RecordFile {
final Map<String, Float> records;
private ... |
package com.qy.zgz.kamiduo.Model;
/**
* ็ๆฌไฟกๆฏ
*/
public class Version {
private int versionid;
private String url;
public int getVersionid() {
return versionid;
}
public void setVersionid(int versionid) {
this.versionid = versionid;
}
public String getUrl() {
ret... |
package com.joakims.Abstraction;
import org.w3c.dom.css.Rect;
public class ShapeTester {
public static void main(String args[]) {
Rectangle rectangle = new Rectangle("Yellow", 10, 15);
Circle circle = new Circle("Black", 6);
Shape s = new Rectangle("Green", 5, 2);
System.out.prin... |
package edu.byu.cs.superasteroids.model;
import android.graphics.Rect;
/**
* Created by Azulius on 2/24/16.
*/
public class PositionedObject extends VisibleObject {
}
|
package com.services.utils.redis.objs;
import com.services.utils.redis.common.RedisBase;
import redis.clients.jedis.Jedis;
import redis.clients.util.SafeEncoder;
import java.util.List;
/**
* ๅฏนๅญๅจ็ปๆไธบString็ฑปๅ็ๆไฝ
*/
public class Strings {
/**
* ๆ นๆฎkey่ทๅ่ฎฐๅฝ
*
* @param key
* @return ๅผ
*/
... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 notXX
* luma <stubma@163.com>
*
* 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 2 of the License, or
* (at you... |
package com.elvarg.world.entity.combat.hit;
/**
* Represents a Hit mask type/color.
* @author Gabriel Hannason
*/
public enum HitMask {
BLUE,
RED,
GREEN,
YELLOW;
} |
/*
* 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 simplechatexample;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
impo... |
package Exerciese526;
import java.util.Scanner;
import java.util.Stack;
public class DeleteK_min {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Stack<Integer> stack = new Stack<>();
while (scanner.hasNext()) {
stack.push(scanner.nextInt());... |
package com.restapi.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value=HttpStatus.NOT_FOUND, reason="No such Newspaper") // Response Status: 404
public class NewspaperNotFoundException extends RuntimeException {
/**
* Unique ... |
package com.ajay.TIAA;
import java.util.Arrays;
public class ArrayCyclRoration {
public static void main(String[] args) {
int[] arr = { 1, 2, 3, 4, 5 };
int n = 2;
cyclRotate(arr, n);
}
private static void cyclRotate(int[] arr, int n) {
int rot = 0;
while (rot != n) {
int element = arr[arr.length -... |
package com.pineapple.mobilecraft.tumcca.fragment;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.uti... |
package br.caelum.vraptor.controller;
import static br.com.caelum.vraptor.view.Results.json;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Time;
import java.util.List;
import java.util.Set;
import javax.servlet.ServletContext;
... |
package cd.com.a.controller;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Au... |
package com.tencent.mm.plugin.fts.b;
import com.tencent.mm.plugin.fts.a.a.a;
import com.tencent.mm.plugin.fts.c.c;
class c$d extends a {
private String gBf;
final /* synthetic */ c jux;
public c$d(c cVar, String str) {
this.jux = cVar;
this.gBf = str;
}
public final boolean execu... |
package com.ppdai.framework.raptor.spring.utils;
import com.ppdai.framework.raptor.annotation.RaptorInterface;
import com.ppdai.framework.raptor.annotation.RaptorMessage;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.Ann... |
package com.tencent.mm.plugin.subapp.ui.friend;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.tencent.mm.R;
import com.tencent.mm.plugin.subapp.ui.friend.FMessageConversationUI.a;
class FMessageConversationUI$5 extends BaseAd... |
package com.travelportal.vm;
import java.util.ArrayList;
import java.util.List;
import com.travelportal.domain.HotelMealPlan;
public class HotelSearch {
public Long supplierCode;
public String hotelNm;
public String supplierNm;
public String hotelAddr;
public String hoteldescription;
public String hotel_emai... |
package com.yeahbunny.stranger.server.services.impl;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.ZonedDateTime;
import org.slf4j.Logger;
impor... |
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
/**
*
* @author SIDDIQ SAMI
*/
public class Signin extends HttpServlet
{
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
... |
package com.bbb.composite.product.details.model;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Docs
{
@JsonProperty("SCENE7_URL")
private String scene7Url;
@JsonProperty("DISPLAY_NAME")
private String display_name;
@JsonProperty("INTL_RESTRICTED")
private Strin... |
package com.base.crm.common.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
imp... |
package com.tencent.mm.ui.tools;
class FilterImageView$b {
String tUY;
String uxh;
String uxi;
FilterImageView$b(String str, String str2, String str3) {
this.tUY = str;
this.uxh = str2;
this.uxi = str3;
}
}
|
package com.lesson3.timecomplexity;
public class TapeEquilibrium {
public static void main(String [] args){
int [] A = {3,1,2,4,3};
System.out.println( new TapeEquilibrium().solution(A) );
}
public int solution(int[] A){
int totSum = 0;
int minDif = 9999;
int sumA = 0;
in... |
package com.tencent.mm.plugin.brandservice.ui;
import com.tencent.mm.protocal.c.ju;
import com.tencent.mm.protocal.c.jz;
import java.util.List;
protected class c$a {
public long bHu;
public int count;
public int dYU;
public List<String> hoB;
public List<jz> hoC;
public boolean hoD;
public ... |
package com.tfjybj.integral.model.scoreResult;
import com.tfjybj.integral.model.scoreResult.DetailBugModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
//import javax.xml.soap.Detail;
import java.util.List;
import java.util.Set;
@NoArgsConstructo... |
package com.tencent.mm.plugin.appbrand.jsapi.wifi;
import com.tencent.mm.plugin.appbrand.e;
import com.tencent.mm.plugin.appbrand.e.b;
import com.tencent.mm.plugin.appbrand.jsapi.wifi.wifisdk.d;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.sdk.platformtools.x;
class a$3 extends b {
final /* synt... |
package net.javaguides.springboot.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import net.javaguides.springboot.service.InstanceService;
import org.springframework.web.bind.annot... |
package mk.petrovski.weathergurumvp.data.remote.model.error_models;
/**
* Created by Nikola Petrovski on 2/13/2017.
*/
public class DataResponseModel {
private ErrorModel data;
public ErrorModel getData() {
return data;
}
public void setData(ErrorModel data) {
this.data = data;
}
}
|
package com.foobarspam.figuras;
public class Square extends GeometricShape implements Drawable {
//Propiedades
private double side = 0.;
//Constructores
public Square() {
super();
}
public Square(double side) {
super();
this.side = side;
}
public Square(String name, double side) {
super(name);... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package amu.electrical.deptt.utils;
import amu.electrical.deptt.R;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.support.v7.app.NotificationCo... |
package algorithm.programmers.hash;
import java.util.HashMap;
public class programmers_courses30_lessons42578 {
static int solution(String[][] clothes) {
HashMap<String, Integer> map = new HashMap<>();
// ํด์์ ํค,๊ฐ ํํ๋ก ์ท ์ข
๋ฅ๋ณ ๊ฐ์ ์ ์ฅ
for (int i = 0; i < clothes.length; i++) {
String currentKey = clothes[i][1];
... |
package ca.aequilibrium.weather.models;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.maps.model.LatLng;
@Entity
public class Location... |
public class A {
public int numberA = 10;
public void walking(){
System.out.println("walking...");
}
public void dancing() {
System.out.println("dancing...");
}
}
|
package com.blackdragon2447.AAM.util;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
import com.blackdragon2447.AAM.Reference;
import com.blackdragon2447.AAM.gui.AAMGui;
public class ThemeButtonBuilder {
public static JMenuItem BuildThemeButton(Themes Theme)... |
package aquarium.jellies;
public class Jelly { }
|
/*
* 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 view;
import static com.sun.java.accessibility.util.AWTEventMonitor.addWindowListener;
import controller.CargoController;
impo... |
package com.takshine.wxcrm.service;
import java.util.List;
import java.util.Map;
import com.takshine.wxcrm.base.services.EntityService;
import com.takshine.wxcrm.base.util.WxHttpConUtil;
import com.takshine.wxcrm.domain.UserRela;
import com.takshine.wxcrm.message.error.CrmError;
import com.takshine.wxcrm.message.suga... |
package com.ojas.rpo.security.dao.assign;
import java.util.List;
import com.ojas.rpo.security.dao.Dao;
import com.ojas.rpo.security.entity.Assign;
import com.ojas.rpo.security.entity.BdmReq;
import com.ojas.rpo.security.entity.Client;
import com.ojas.rpo.security.entity.Response;
import com.ojas.rpo.security.entity.U... |
package vantoan.blog_security.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders... |
package de.jottyfan.db;
import javax.faces.context.FacesContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jooq.Field;
import org.jooq.Record;
import org.jooq.Record1;
import org.jooq.Record2;
import org.jooq.SelectConditionStep;
import org.jooq.TableLike;
import o... |
package com.tencent.mm.ui.contact;
import com.tencent.mm.ui.contact.SnsAddressUI.1;
class SnsAddressUI$1$1 implements Runnable {
final /* synthetic */ 1 ulT;
SnsAddressUI$1$1(1 1) {
this.ulT = 1;
}
public final void run() {
if (!this.ulT.ulS.getIntent().getBooleanExtra("stay_in_wecha... |
package com.gcsw.teamone;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.gms.tasks.OnComplet... |
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
public class XMLHandler extends DefaultHandler {
private static SimpleDateFormat birthDayF... |
package cn.it.homework6.adapter;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import cn.it.homework6.R;
public class DiaryLis... |
package linklist;
import java.util.LinkedHashSet;
import java.util.Set;
public class DriverClasss {
public static void main(String[] args) {
LinkList l=new LinkList();
Node j=new Node(5);
l.insertAtHead(j);
Node k=new Node(6);
l.insertAtHead(k);
l.insertAtLast(new Node(7));
l.insertAtL... |
package com.pxene;
import com.google.common.collect.Lists;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.File;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;... |
package com.mobfox.rtree.model;
import com.mobfox.rtree.entity.Sample;
import java.util.Collections;
import java.util.function.Function;
/**
* A terminal node of an {@link com.mobfox.rtree.model.RTree RTree}.
* Responsible for making the actual predictions.
*/
public class RTreeLeaf implements RTree {
priva... |
package asscry;
import java.io.File;
import java.io.FileOutputStream;
import java.security.SecureRandom;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
public class BFKeyGenerate {
//private static final String FILENAME = "//storage//emulated//0//Crypto//";
static File direc = new File("... |
package ru.otus.spring.barsegyan.service.security;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.context.HttpSessionSecurityContex... |
package de.madjosz.adventofcode.y2016;
import static java.lang.Math.abs;
import java.util.List;
import java.util.function.IntConsumer;
public class Day02 {
private final List<String> input;
public Day02(List<String> input) {
this.input = input;
}
public int a1() {
int[] pos = new ... |
package pl.ark.chr.buginator.persistence.security;
import pl.ark.chr.buginator.domain.core.Application;
/**
* Used for security reason. Each class implementing this interface should be filtered to return only
* this data that match given Application
*/
public interface FilterData {
Application getApplication(... |
package co.nos.noswallet.ui.addWallet;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputEditText;
import android.support.desi... |
/*
* 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 Controller;
import Database.Database;
import Model.Aplikasi;
import Model.Jasa;
import View.ViewListJasa;
import ja... |
/*
* 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 controller;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import java.io.IOException;
import... |
package com.zealot.mytest.security.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFound... |
package banyuan.day09.package02;
/**
* @author ้ๆตฉ
* @date Created on 2019/11/3
* 3.้ฎ็ๅฝๅ
ฅ5ไธชๅญฆ็ไฟกๆฏ(ๅงๅ,่ฏญๆๆ็ปฉ,ๆฐๅญฆๆ็ปฉ,่ฑ่ฏญๆ็ปฉ)
* ,ๆ็
งๆปๅไป้ซๅฐไฝ่พๅบๅฐๆงๅถๅฐ
*/
public class Student implements Comparable {
private String name;
private int ChineseScore;
private int mathScore;
private int EnglishScore;
public Student() {... |
public class GenaricDemo1 {
public static void main(String[] args) {
Demo <String> d1 = new Demo<String>();
d1.coll("sadf");
d1.print(1234);
d1.show("asqwdvvcw");
}
}
class Demo<T>{
public void show( T t ){
System.out.println(t);
}
public <A> void coll(A s){
System.out.pri... |
package com.nearur.daa;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckedTextView;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class QuickSort extends ... |
package com.example.sonic.whatdoyoudo.utils;
import android.util.Log;
import com.opencsv.CSVWriter;
import java.io.FileWriter;
/**
* Created by sonic on 03/04/2017.
*/
public class Dataset {
private CSVWriter writer;
private String[] header;
public String createDataset(String[] entries, boolean new... |
package com.lingnet.vocs.entity;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.lingnet.common.entity.BaseEntity;
@Entity
@Table(name = "follow")
public class Follow extends BaseEntity implements java.io.Serializable{
/**
*
*/
p... |
package pacman.board;
import pacman.util.Position;
import java.util.Arrays;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Represents the Pac Man game board.
* The board can be any size,
* it is set out as a grid with each space containing only one BoardItem.
* Game boards are by default surround... |
package com.javalogicalprograms;
import java.util.*;
public class RemoveDuplicateElementsInIntegerArray {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a[] = {25, 26, 11, 16, 25, 11, 35, 25, 16, 11};
int len = a.length;
for(int i=0;i<len;i++)
{
for(int j=i+1;j<len;j++)... |
package Management.HumanResources.FinancialSystem.DataAccessObject;
import Management.HumanResources.BaseDepartment;
import Management.HumanResources.BaseEmployee;
import java.io.IOException;
/**
* ไบบๅ่ช่ต็ๆฐๆฎๆไฝๆฅๅฃ
* <b> ไฝฟ็จไบDAOๆจกๅผ </b>
*
* @author ๅฐไธๅฅ
* @since 2021-10-16 14:00
*/
public abstract interface SalaryDao ... |
package io.github.namhyungu.algorithm.baekjoon.backtracking;
import java.util.Scanner;
public class Solution14888 {
private static int[] nums;
private static int[] operators;
private static int[] order;
private static int N;
private static int min;
private static int max;
public static void main(Strin... |
package patterns.state;
public interface IState {
public void doAction();
}
|
package ro.redeul.google.go.formatter;
import com.ansorgit.plugins.bash.editor.formatting.noOpModel.NoOpBlock;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.formatting.FormattingModel;
import com.intellij.formatting.FormattingModelBuilder;
import com.intellij.formatting.Formattin... |
package io.confluent.se.poc.streams;
import io.confluent.kafka.streams.serdes.avro.*;
import org.apache.kafka.streams.*;
import org.apache.kafka.streams.kstream.*;
import org.apache.kafka.common.serialization.*;
import org.apache.kafka.streams.state.*;
import org.apache.avro.generic.*;
import org.apache.avro.*;
impo... |
package org.motechproject.server.model.rct;
import org.motechproject.ws.rct.ControlGroup;
public class ControlGroupAssignment {
private Integer id ;
private Integer assignmentNumber ;
private ControlGroup controlGroup;
public boolean hasAssignmentNumber(Integer nextAssignment) {
return assignmen... |
package com.example.caroline.countme;
import android.content.Context;
import android.util.Log;
import java.io.FileOutputStream;
public class CsvWriter {
// some variables
String filename = "DataFile.csv";
// constructor, needs a Project
public CsvWriter(Project project) {
String[] StringArray... |
package cn.wycclub.service;
import cn.wycclub.dao.po.OrderInfo;
import cn.wycclub.dao.po.UserInfo;
import cn.wycclub.dto.Order;
import java.util.List;
public interface BusinessOrdersService {
//ๆทปๅ ่ฎขๅ๏ผๅบไบ่ดญ็ฉ่ฝฆ๏ผ
Integer insertOrder(List<Integer> cids, int uid) throws Exception;
//้่ฟ่ฎขๅๅทๆฅ่ฏข่ฎขๅ
... |
package com.tencent.mm.plugin.appbrand.appcache;
import com.tencent.mm.a.e;
import com.tencent.mm.modelcdntran.g;
import com.tencent.mm.plugin.appbrand.q.h;
import com.tencent.mm.sdk.platformtools.al.a;
import java.util.concurrent.CountDownLatch;
class ah$a$1 implements a {
final /* synthetic */ CountDownLatch dK... |
package br.org.funcate.glue.controller;
import java.util.ArrayList;
import java.util.EventObject;
import java.util.HashMap;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import br.org.funcate.ea... |
public class DezePerMazaRuntimeException extends RuntimeException{
public DezePerMazaRuntimeException(String message) {
super(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 br.com.fatecpg.oo;
/**
*
* @author Manoel Rodriguez
*/
public class Main {
public static void main(String... |
package chapter08;
public class Exercise08_03 {
public static void main(String[] args) {
char[][] answers = {
{'A', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'},
{'D', 'B', 'A', 'B', 'C', 'A', 'E', 'E', 'A', 'D'},
{'E', 'D', 'D', 'A', 'C', 'B', 'E', 'E', 'A', 'D'},
{'C', ... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
package com.qgbase.biz.user.controller;
import com.qgbase.biz.user.query.TQuery;
import com.qgbase.biz.user.query.TuserQuery;
import com.qgbase.common.domain.OperInfo;
import com.qgbase.config.annotation.Permission;
import com.qgbase.util.PageControl;
import org.springframework.beans.factory.annotation.Autowired;
impo... |
package com.zy.crm.utils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringUtils {
private static ApplicationContext context;
static {
context = new ClassPathXmlApplicationContext("applicationContext.xm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.