text stringlengths 10 2.72M |
|---|
package com.vuongideas.pathfinding.graph;
public interface WeightedGraph<T> extends Graph<T> {
public double getWeight(Vertex<T> v1, Vertex<T> v2);
}
|
package com.example.the_season_of_the_song;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
public class SongView extends ConstraintLayo... |
package com.example.awesoman.owo2_comic.model;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* Created by Awesome on 2017/6/1.
*/
@DatabaseTable(tableName = "tb_music_trigger")
public class MusicTriggerInfo {
@DatabaseField(generatedId = true)
int id;
@D... |
/*
* Copyright 2002-2018 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.hdxy.baseproject.UI.home.act;
import android.view.View;
import com.example.hdxy.baseproject.Base.BaseActivity;
import com.example.hdxy.baseproject.R;
import com.example.hdxy.baseproject.UI.home.bean.BookInfoBean;
import com.example.hdxy.baseproject.UI.home.mvp.contract.HomeContract;
import com.exam... |
package com.cs.job.netrefer;
import com.cs.messaging.sftp.PlayerRegistration;
import com.cs.report.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutio... |
package lab5.comparetors.classes;
import lab5.ids.ProdutoID;
import lab5.util.Validador;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Objects;
/**
* Classe que representa uma compra no sistema
* @author Charles Bezerra de Oliveira Junior
*/
public class Compra implements... |
public class OneWayArrayList<T> {
private final T[] data;
OneWayArrayList(T[] args) {
data = args;
}
public OneWayArrayListNode head() {
if (data.length == 0) {
return null;
}
return new OneWayArrayListNode(0);
}
class OneWayArrayListNode implement... |
package hideme;
public class HidemeClient {
}
|
package com.nantian.foo.web.auth.dao;
import java.util.List;
import com.nantian.foo.web.auth.entity.AuthInfo;
import com.nantian.foo.web.auth.entity.MenuAuth;
import com.nantian.foo.web.auth.entity.MenuTree;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.J... |
package com.eegeo.mapapi.services.routing;
/**
* An enum representing a mode of transport for a Route. This is currently a placeholder, but more modes of transport may be added in future versions of the API.
*/
public enum TransportationMode
{
/**
* Indicates that the route is a walking Route.
*/
... |
import java.util.Scanner;
/**
* Console menu is a general purpose class data type that makes a
* menu object for interacting with a user over a console (or terminal)
* window. This is useful for text-based programs to present the user
* with a set of numbered options to choose from. The menu itself can
* also ha... |
package api.ResourceList;
import io.restassured.http.ContentType;
import static io.restassured.RestAssured.given;
public class ResourceListAPI {
private static String endPoint = "https://reqres.in/api/unknown";
public static ResourceResponse getResourceList() {
ResourceResponse response = null;
... |
/*
* 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 agh.musicapplication.mappview.util;
import javax.servlet.http.Part;
/**
*
* @author ag
*/
public class PathHolder {
p... |
package com.online.spring.web.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import com.online.spring.web.model.Student;
pu... |
package stack;
/**
* 基于链表实现的栈
* @author ynx
* @version V1.0
* @date 2020-07-31
*/
public class StackBasedOnLinkedList {
private int size;
private Node top;
static Node createNode(String data, Node next) {
return new Node(data, next);
}
public void clear() {
this.top = null;
... |
package com.pythe.rest.controller;
import org.springframework.beans.factory.annotation.Autowired;
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.... |
package Classwork_12;
import java.io.Serializable;
public class Passport implements Serializable {
String id;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
return "Passport{" +
"id='" + id + '\'' +
'}';
}
}
|
package com.example.g0294.tutorial.ui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.Toast;
import com.example.g0294.tutorial.R;
public clas... |
package ca.brocku.cosc3p97.bigbuzzerquiz.views;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Text... |
package com.citibank.newcpb.persistence.dao;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.Blob;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.ArrayList;
i... |
package team21.pylonconstructor;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import andr... |
package com.example.pawansiwakoti.vicroadslicensetest.network;
import android.support.annotation.NonNull;
import com.google.gson.annotations.SerializedName;
import java.util.Locale;
public class ApiResponse {
@SerializedName("Error")
private int error;
@SerializedName("Message")
private String me... |
package com.eclinic.utils;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
public class ObjectMapperUtil {
public static ObjectMapper getObjectMapper() {
ObjectMapper objMap = new ObjectMapper();
objMap.configure(DeserializationFeature.FAIL_ON_UN... |
import java.util.*;
public class Prime1 {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int temp=0;
for(int i=2;i<=n/2;i++) {
if(n%i==0){
temp+=1;
}
}
if(temp==0) {
System.out.println("prime number");
}
else {
System.... |
package mainGame.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Icon;
import gui.interfaces.Visible;
import mainGame.components.Holdstroke;
import mainGame.components.Keystroke;
import mainGame.screens.GameScreen;
/**
* This class will be used to crea... |
package edu.caltech.cs2.project03;
import edu.caltech.cs2.datastructures.CircularArrayFixedSizeQueue;
import edu.caltech.cs2.interfaces.IFixedSizeQueue;
import edu.caltech.cs2.interfaces.IQueue;
import java.util.Random;
public class CircularArrayFixedSizeQueueGuitarString {
private IFixedSizeQueue<Double> freq;
... |
package com.example.nikit.news.api;
import com.example.nikit.news.entities.Article;
import java.util.List;
/**
* Created by nikit on 18.03.2017.
*/
public class ArticlesResponse {
private List<Article> articles;
public ArticlesResponse(List<Article> articles) {
this.articles = articles;
}
... |
package com.mtl.hulk;
import com.mtl.hulk.common.Resource;
public interface HulkInterceptor extends Resource {
}
|
package com.cheese.radio.ui;
import com.cheese.radio.ui.media.play.PlayEntity;
import java.util.ArrayList;
import java.util.List;
/**
* Created by pc on 2017/8/12.
*/
public interface Constant {
String room = "room";
String socketRespond = "socketRespond";
String id = "id";
String wifi_change = "w... |
package com.fragrancepluscustomerdatabase.scottauman;
/**
* Created by Scott on 3/3/2016.
*/
public class DropBoxMetaData {
private String size,name,lastUpdate,filePath;
public String getLastUpdate() {
return lastUpdate;
}
public void setLastUpdate(String lastUpdate) {
this.lastUpd... |
package com.ilids.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
public abstract class AbstractGenericDao<T> implements GenericDao<T> {
@PersistenceContext
protected EntityManager entityManager;
private Cla... |
package com.sims.bo;
import java.util.List;
import java.util.Map;
import com.sims.model.Supplier;
/**
*
* @author dward
*
*/
public interface SupplierBo {
boolean save(Supplier entity);
boolean update(Supplier entity);
boolean delete(Supplier entity);
Supplier findById(int criteria);
Map... |
package com.developworks.jvmcode;
/**
* <p>Title: swap</p>
* <p>Description: 交换操作数栈顶两个值</p>
* <p>Author: ouyp </p>
* <p>Date: 2018-05-20 16:51</p>
*/
public class swap {
}
|
package com.perfect.web.service;
import com.perfect.entity.RolePermission;
import com.baomidou.mybatisplus.service.IService;
/**
* <p>
* 角色权限表 服务类
* </p>
*
* @author Ben.
* @since 2017-03-15
*/
public interface RolePermissionService extends IService<RolePermission> {
}
|
package com.paragon.utils;
import com.karumi.dexter.PermissionToken;
/**
* Created by Rupesh Saxena
*/
public interface SinglePermissionCallBack {
void isPermissionsGranted();
void isPermissionDenied();
void isPermissionPermanentlyDenied();
void onPermissionRationaleShouldBeShown(PermissionToken... |
/*
* Created on Mar 2, 2007
*
*
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.citibank.ods.modules.client.officercmpl.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import... |
package RAUDT.MLFS_RoundRobin_Throughput;
import genDevs.modeling.*;
import GenCol.*;
import simView.*;
public class ThruputCalc extends ViewableAtomic
{
protected double clock;
protected double time;
protected int finished;
protected int total_job;
protected double processing_time;
public ThruputCalc()
{
th... |
package ru.job4j.professions;
public class Patient {
public String complaint;
public String name;
public Patient(String name, String complaint) {
this.name = name;
this.complaint = complaint;
}
} |
package no.nav.vedtak.sikkerhet.jaspic.soap;
import static jakarta.security.auth.message.AuthStatus.FAILURE;
import static jakarta.security.auth.message.AuthStatus.SUCCESS;
import java.io.IOException;
import java.util.Collections;
import java.util.Optional;
import java.util.Set;
import jakarta.enterprise.inject.spi.... |
package com.wzk.demo.springboot.shardingswagger.dubbo;
import java.util.Date;
public interface DubboDemoService {
public Date getDate();
}
|
package com.ideal.cash.register.utils;
import java.math.BigDecimal;
import java.text.DecimalFormat;
/**
* double加乘除的工具
* @author Ideal
*/
public class NumberUtil {
/**
* 计算加法
*/
public static double add(double i, double j) {
double result = BigDecimal.valueOf(i).add(BigDecimal.valueOf(j)).d... |
package com.androidcorpo.lindapp;
public class Constant {
public static final String ADDRESS = "address";
public static final String FROM = "from";
public static final String PREFERENCE = "MyPref";
public static final String MY_CONTACT = "myContact";
public static final String DATE_PATTERN = "yyyy-... |
package com.croquis.crary.dialog;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.croquis.crary.R;
public class CraryMessageBox {
public static void alert(Context context, String message) {
... |
package com.shop.model;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
/**
* 商品类别实体类
*/
@Data
@ToString
public class GoodsCategory {
//categoryId
private Long categoryId;
// categoryName
private String categoryName;
}
|
package com.zjf.myself.codebase.activity.UILibrary;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.zjf.myself.codebase.R;
import com.zjf.myself.codebase.activity.BaseAct;
import com.zjf... |
package org.uva.forcepushql.interpreter.gui.questions;
import org.uva.forcepushql.interpreter.gui.Observer;
import org.uva.forcepushql.parser.ast.ValueType;
public class Radio extends Question
{
private boolean answer;
public Radio(String question, ValueType answerType, String answerName)
{
sup... |
public class BinarySearch {
public static void main(String[] args) {
int[] array = new int[]{-1, 3, 5, 8, 10, 15, 16, 20};
System.out.println(binarySearch(array, 16));
}
public static int binarySearch(int[] array, int number) {
int low = 0;
int high = array.length - ... |
package thread.sxt.info;
public class InfoDemo02 {
public static void main(String[] args) throws InterruptedException {
MyThread m = new MyThread();
Thread t = new Thread(m, "IT1");
MyThread m2 = new MyThread();
Thread t2 = new Thread(m2, "IT2");
t.setPriority(Thread.MAX_PRIORITY);
t2.setPriority(Th... |
package com.gxtc.huchuan.ui.live.member;
import android.util.Log;
import com.gxtc.huchuan.bean.ChatJoinBean;
import com.gxtc.huchuan.bean.SignUpMemberBean;
import com.gxtc.huchuan.data.UserManager;
import com.gxtc.huchuan.http.ApiCallBack;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
... |
package co.bucketstargram.command.member;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import co.bucketstargram.common.Command;
import co.bucketstargram.... |
package com.freddygenicho.sample.mpesa;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import andr... |
package com.example.framgiaphamducnam.demomodel3d.screens.setting;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import com.exampl... |
package at.fhv.teama.easyticket.server.venue.ticket;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Data
@Entity
public class Category {
@Id @GeneratedValue private Long id;
private Integer price;
}
|
/**
* Copyright (c) 2012 Vasile Popescu
*
* This file is part of HMC Software.
*
* HMC Software is distributed under NDA so it cannot be distributed
* and/or modified without prior written agreement of the author.
*/
package com.hmc.project.hmc.devices.proxy;
import org.jivesoftware.smack.Chat;
import org.jives... |
package br.edu.utfpr.spring.trab.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import o... |
package org.tenderloinhousing.apps.helper;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.net.ConnectivityManager;
public class CommonUtil
{
public static SimpleDa... |
package net.awesomekorean.podo.writing;
import android.content.Context;
import android.database.SQLException;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import androidx.room.migration.Migration;
import androidx.sqlite.db.SupportSQLite... |
package com.example.cruiseTrip.database.entity;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import java.util.Date;
@Entity
public class Itinerary {
@PrimaryKey(autoGenerate = true)
private int ... |
package br.com.lucro.manager.dao.impl;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.apache.log4j.Logger;
import br.com.lucro.manager.dao.DAOManager;
import br.... |
package com.zhicai.byteera.activity.community.dynamic.entity;
import android.os.Parcel;
import android.os.Parcelable;
import com.zhicai.byteera.activity.community.topic.entity.FinancingCompanyEntity;
/**
* Created by songpengfei on 15/9/22.
*/
public class ExchangeEntity implements Parcelable{
String item_id... |
package com.github.rogeralmeida.faulttolerance;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ann... |
/*
* 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 classes.facade;
import classes.HibernateUtil;
import classes.model.Order;
import classes.model.User;
import java.math.BigInteg... |
public class ExcelentPupil extends Pupil {
@Override
public void study() {
System.out.println("i can study very well");
}
@Override
public void read() {
System.out.println("i can read very well");
}
@Override
public void write() {
System.out.println("i can writ... |
package serviceGPS;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;
import com.google.android.gms.common.ConnectionResult;
import com... |
package us.team7pro.EventTicketsApp.DatabaseLoaders;
import org.springframework.boot.CommandLineRunner;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Component;
import us.team7pro.EventTicketsApp.Domain.Role;
import us.team7pro.EventTicketsApp.Domain.Use... |
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class ModelEuclid {
private BufferedReader reader;
private String posDicPath = "C:\\Users\\Ood\\Desktop\\MLTEMP\\poswords.txt";
private String negDicPath = "... |
/*
* Copyright 2002-2023 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.esum.comp.as2.outbound;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.comp.as2.AS2ADTException;
import com.esum.comp.as2.AS2Code;
import com.esum.comp.as2.AS2Config;
import com.esum.comp.as2.adapter.DefaultAS2Adapter;
import com.esum.framework.core.component.ComponentException;
... |
package com.example.josh.noteable.fragments;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.... |
package com.wcy.models;
import java.util.Date;
import java.lang.*;
import java.util.*;
public class Book {
private String isbn;
private String title;
private String authorID;
private String publisher;
private String publishDate;
private float price;
private String authorName;
private int authorAge;
... |
package me.kpali.wolfflow.core.exception;
/**
* 任务流中断异常
*
* @author kpali
*/
public class TaskFlowInterruptedException extends Exception {
public TaskFlowInterruptedException() {
super();
}
public TaskFlowInterruptedException(String message) {
super(message);
}
... |
/*
* 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 org.datacontract.schemas._2004._07.tmix_cap_fleetmgmt_library_wcf_external_service_data;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods f... |
package com.auro.scholr.home.data.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class FriendRequestList {
@Expose
@SerializedName("friends")
private List<Friends> friends;
@Expose
@SerializedName("error")
pri... |
package croissonrouge.darelbeida.competitions;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Typeface;
import androi... |
package me.bayanov.arrayListHome;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Reader {
public static ArrayList<String> linesFromFile(String filePath) throws FileNotFoundException {
ArrayList<String> lines = new Ar... |
package com.needii.dashboard.service;
import java.util.List;
import com.needii.dashboard.model.Notification;
import com.needii.dashboard.utils.Pagination;
public interface NotificationService {
List<Notification> findAll(Pagination pagination);
Long count();
Notification findOne(int id);
Notification... |
package ru.freask.imgloader;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
public s... |
package xyz.sudocoding.befearless.listeners;
/**
* Firebase Authentication listener class
*/
public interface AuthenticationListener {
public boolean signedUp(boolean isSuccessful);
public boolean logIn(boolean isSuccessful);
public boolean error();
}
|
class A
{
int num;
void set()
{
num=100;
}
void get()
{
System.out.println(num);
}
void myfunc()
{
System.out.println("A");
}
}
class B extends A
{
int data;
void fun1()
{
data=500;
}
void display()
{
System.out.println(num +" "+ data);
}
void myfunc()
{
Syst... |
package org.opencv.test.highgui;
import java.util.List;
import org.opencv.core.Size;
import org.opencv.videoio.Videoio;
import org.opencv.videoio.VideoCapture;
import org.opencv.test.OpenCVTestCase;
public class VideoCaptureTest extends OpenCVTestCase {
private VideoCapture capture;
private boolean isOpene... |
package com.jrd.timedmailsender;
import javax.mail.MessagingException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Logger;
/**
* Created by jrd on 2016-04-28.
*/
public class ReportController {
private static Logger LOGGER = Logger.getLogger(Re... |
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
class exoop{
public static int main(String[] args){
//int N = atoi(args[1]);
//int Nf = atoi(args[2]);
//int Ng = atoi(args[3]);
//int No = atoi(args[4]);
//int Nl = atoi(args[5]);
... |
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class TLG
{
public static void theLeadGame (int[] iScores, int[] jScores, int[] winnerPerRound, int[] lead) {
int max = 0;
... |
package com.example.g0294.tutorial.ui;
import android.app.ActionBar;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.PopupMenu;
import android.util.Lo... |
// Generated by view binder compiler. Do not edit!
package com.designurway.idlidosa.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.N... |
package com.sapl.retailerorderingmsdpharma.activities;
import android.app.TabActivity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util... |
public class Solution {
public List<Integer> putChair(char[][] gym) {
int row = gym.length;
int col = gym[0].length;
int[][] cost = new int[row][col];
for (int i = 0; i < row; i++) {
for (int j = 0; j < col; j++) {
if (gym[i][j] == 'E') {
addCost(gym, cost, i, j);
}
... |
package com.ranger.j2EE.crowfunding.service.api;
import com.ranger.j2EE.crowfunding.entity.Admin;
public interface AdminService {
void saveAdmin(Admin admin);
}
|
package models;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static matchers.IsValidYearMatcher.isValidYearMatcher;
import static org.hamcrest.MatcherAssert.assertThat;
import static matchers.MovieMatcher.assertThat;
/**
* Author... |
/*
Description: Model class representing a record of Boards table
History: Class created: 11/17/2017 - Maximiliano Pozzi
*/
package controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin... |
package models;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class GetAll extends BaseRequest {
private List<Movie> movies;
private List<Book> books;
private List<Music> music;
public GetAll() {
this.movies = new ArrayList<>();
this.books = new Array... |
package turtlekit.segregation;
import java.awt.Color;
import java.util.List;
import turtlekit.kernel.Turtle;
//TODO pourquoi un si grand nombre d'agents ne "se posent" pas et reste donc à se déplacer !!!!!!!!!
/**
* Agents of the Segregation model
*
* @author Emmanuel Hermellin
*
* @version 1.0
*
* @see tu... |
package com.example.anujj.attendence.Subject;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... |
public class SwapFirstLast {
/**
* @RAKESH YADAV
* 18th February 2015
* Swap the first and last elements of an array.
*/
public static void main(String[] args) {
int []arr = {1, 2, 3, 5, 4};
int []arr2 = new int[arr.length];
System.out.println("Array: ");
for(int i = 0; i < arr.length; i++){
Sy... |
package com.blog.servlet.user;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.blog.Iservice.IFeedbackSe... |
package dialogo;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
imp... |
/**
* Created by james on 2016/8/8.
*/
/**
* 多态的含义就是,如果一个类,用到了其他类,那么在实际使用的时候,会根据上下文环境进行动态绑定,以选择正确的类进行使用。
*/
class Animal {
public void bark(){
System.out.println("Animal barks.");
}
}
class Bird extends Animal{
@Override
public void bark(){
System.out.println("My bird is singing.... |
package codingBat.recursion1;
public class Exe29StrCopies {
/*
Given a string and a non-empty substring sub, compute recursively if at least n copies of sub
appear in the string somewhere, possibly with overlapping. N will be non-negative.
strCopies("catcowcat", "cat", 2) → true
strCopies("catcowcat", "cow", 2) → f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.