file_id stringlengths 4 9 | content stringlengths 41 35k | repo stringlengths 7 113 | path stringlengths 5 90 | token_length int64 15 4.07k | original_comment stringlengths 3 9.88k | comment_type stringclasses 2
values | detected_lang stringclasses 1
value | excluded bool 2
classes |
|---|---|---|---|---|---|---|---|---|
60_1 | /*Write a program to find the shortest path between vertices using
bellman-ford algorithm.*/
//bellman ford algorithm for shortest distance from a source node to all the remaining nodes
import java.util.*;
public class BellmanFord {
private static int N;
private static int[][] graph;
public static void ... | saadhussain01306/computer_net_lab | 3.bellman_ford.java | 777 | //bellman ford algorithm for shortest distance from a source node to all the remaining nodes | line_comment | en | false |
294_12 | package _2017._09._assignments.projectgo.template.v2;
//imports
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
//class defnition f
public class Go extends Application {
// private fields
private BorderPane bp_layout;
private Go... | JosephCheevers/GO | Go.java | 469 | // set a title, size and the stack pane as the root of the scene graph | line_comment | en | false |
625_0 | public final class i {
public static boolean a;
public static final int[] b = { 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -10, -11, -13, -12, -20, -21, -1, -2, -3, -4, -6, -7, -5, 42, 35 };
private static final int[][] c = { { 0 }, { 1 }, { 2, 10 }, { 3 }, { 4, 12 }, { 5, 14 }, { 6, 13 }, { 7 }, { 8, 11 }, { ... | TheRealPinkie/BT_Biplanes_src | i.java | 786 | /* Location: /Users/ilya/4fun/Biplanes/Bluetooth_Biplanes.jar
* Qualified Name: i
* JD-Core Version: 0.6.2
*/ | block_comment | en | true |
909_0 | import java.util.Scanner;
import java.text.DecimalFormat;
/**
* Calculate Pi
* @date 19 August 2014
* @author Nefari0uss
*
* This program will request the approximate number of calculations to run in calculating π.
* The final result will be displayed on the console. Assumption is that the user inputs an in... | Nefari0uss/calculate-pi | Pi.java | 542 | /**
* Calculate Pi
* @date 19 August 2014
* @author Nefari0uss
*
* This program will request the approximate number of calculations to run in calculating π.
* The final result will be displayed on the console. Assumption is that the user inputs an int.
*
*
* Uses the Gottfried Leibniz formula for calcul... | block_comment | en | false |
953_1 | import java.io.*;
import java_cup.runtime.*;
/**
* Main program to test the parser.
*
* There should be 2 command-line arguments:
* 1. the file to be parsed
* 2. the output file into which the AST built by the parser should be
* unparsed
* The program opens the two files, creates a scanner and a pa... | jkoritzinsky/Moo-Type-Analysis | P5.java | 1,503 | /**
* P5 constructor for client programs and testers. Note that
* users MUST invoke {@link setInfile} and {@link setOutfile}
*/ | block_comment | en | true |
1566_0 | //2-Given sides of a triangle, check whether the triangle is equilateral, isosceles or scalene. Find it's area
import java.util.Scanner;
public class Triangle {
public static void main(String[] args) {
int a, b, c;
double p, area;
Scanner sc = new Scanner(System.in);
System.out.prin... | KadeejaSahlaPV/java | 2.java | 293 | //2-Given sides of a triangle, check whether the triangle is equilateral, isosceles or scalene. Find it's area | line_comment | en | false |
1570_1 | package Myinterface;
//@FunctionalInterface
public class B implements A { // when we are only one method pass inside class then
// interface show. otherwise more than one method it show error
@Override
public void test1() {
System.out.println(50000);
}
@Override
publi... | Ashutosh-62044/Interface-in-java | B.java | 141 | // when we are only one method pass inside class then
| line_comment | en | true |
1614_4 | package advanced.gestureSound;
import java.io.File;
import java.io.IOException;
import java.net.InetSocketAddress;
import de.sciss.jcollider.Group;
import de.sciss.jcollider.JCollider;
import de.sciss.jcollider.NodeWatcher;
import de.sciss.jcollider.Server;
import de.sciss.jcollider.ServerOptions;
import de.sciss.jco... | acm-uiuc/Tacchi | SC.java | 1,358 | /**
* this is a useful function if you're using jcollider's synthdefs.
* however I have not.
*/ | block_comment | en | true |
1946_5 | /******************************************************************************
* Compilation: javac UF.java
* Execution: java UF < input.txt
* Dependencies: StdIn.java StdOut.java
* Data files: http://algs4.cs.princeton.edu/15uf/tinyUF.txt
* http://algs4.cs.princeton.edu/15uf/mediumUF.txt... | dud3/princeton-algs4 | UF.java | 1,263 | /**
* Returns the component identifier for the component containing site {@code p}.
*
* @param p the integer representing one site
* @return the component identifier for the component containing site {@code p}
* @throws IndexOutOfBoundsException unless {@code 0 <= p < n}
*/ | block_comment | en | false |
3634_3 | class Solution {
public boolean isValidBST(TreeNode root) {
return isValidBSTWithRange(root, Integer.MIN_VALUE, Integer.MAX_VALUE);
}
boolean isValidBSTWithRange(TreeNode root, int min, int max){
// 判断root是否为二叉搜索树,并且所有节点需要在min -> max 闭范围
if (root == null) {
return true;
... | ninehills/leetcode | 98.java | 301 | // 如果root已经为最大值,且还有右树,那一定不满足条件 | line_comment | en | true |
4844_6 | /**
* Provides basic game state handling.
*/
public abstract class Bot extends AbstractSystemInputParser {
protected Game game;
protected AntMap map;
protected int ROWS;
protected int COLS;
/**
* {@inheritDoc}
*/
@Override
public void setup(int loadTime, int tur... | goldcaddy77/Ants-AI-Challenge | Bot.java | 665 | /**
* {@inheritDoc}
*/ | block_comment | en | true |
5737_3 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Babies do not produce cookies for their player but instead take away
* cookies from the other player.
* every second.
*
* @author Patrick Hu
* @version November 2022
*/
public class Baby extends Building
{
private boolea... | edzhuang/cookie-clicker-simulation | Baby.java | 610 | /**
* @param player The player who has purchased a Baby
*/ | block_comment | en | false |
5838_7 | import java.util.*;
/**
* Implementation of the Farmer Wolf Goat Cabbage problem.
*
* This code was created by Joshua Bates and is his copyright.
*/
public class FWGC implements Problem
{
private boolean[] river=new boolean[4];
private int cost;
/**
* Constructor to create a new FWGC
* Cost is... | BatesJosh/Artficial-Intelligence-Problem-Assignment | FWGC.java | 1,392 | /**
* Checks valid successors, and returns all possible successors.
* @return
*/ | block_comment | en | false |
6427_0 | import org.patricbrc.Workspace.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
public class ex
{
public static void main(String args[])
{
try {
String token = "un=olson|tokenid=2A8BCAFA-ACBA-11E4-A91B-68C642A49C03|expiry=1454623630|client_id=olson|token_type=Bearer|SigningSubject... | BV-BRC/Workspace | ex.java | 706 | //rast.nmpdr.org/goauth/keys/E087E220-F8B1-11E3-9175-BD9D42A49C03|this_is_globus=globus_style_token|sig=03a3cfae05a8dbaaaf57e34eb4800bc8b3c8046beb18620a8d605867490228302651f050578a7dd30181366b1cf7170dedc89a45a6b41a3ce6ebd96069834be090281c2bf4f3917a005a63f5ac78799843d33b690cfc76f7d59ef846fe7a23d5d623d830584d23adad60293c... | line_comment | en | true |
6881_7 | import java.util.ArrayList;
import java.util.List;
// Basic user interface which defines the basic methods required in the system
public interface User {
String getuserName();
String getPassword();
String getContact();
List<Event> getBookedEvents();
List<Booking> getBookings();
boolea... | Jainil2004/LocalEventManagementAndBookingSystem | User.java | 1,039 | // method which prints all the booking details about the bookings made by the user.
| line_comment | en | false |
7028_2 | /*
Copyright (c) 2014, Christoph Stahl
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... | stahlfabrik/TRAC3R | TRAC3R.java | 916 | /* Notes
* Button.LEDPattern(3); //off 0, static: green 1, red 2, yellow 3, rhythmic: green 7, red 8, yellow 9
* Drawing Rectangle in mm from origin:
*
* upper: 270
* left: -105 right: 125
* bottom: 115
*
* Drawing rectangle size: 155x230
*/ | block_comment | en | true |
7083_0 | ///usr/bin/env jbang "$0" "$@" ; exit $?
//REPOS mavencentral,jitpack
//DEPS com.github.adriens:excuses-sdk:v0.12
//DEPS info.picocli:picocli:4.5.0
import com.github.adriens.excuses.sdk.Excuses;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Parameters;
import java.util.conc... | adriens/excuses-sdk | nope.java | 322 | ///usr/bin/env jbang "$0" "$@" ; exit $? | line_comment | en | true |
7856_3 | package app;
import java.awt.Desktop;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.StringJoiner;
import javax.imageio.Image... | benhannel/TeslaTracker | GUI.java | 1,784 | // </editor-fold>//GEN-END:initComponents | line_comment | en | true |
7866_0 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
public List<Integer> rightSideView(TreeNode root) {
List<Integer> result = new ArrayList<>();
if(root==null)... | fztfztfztfzt/leetcode | 199.java | 208 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/ | block_comment | en | true |
9004_1 | package profile;
import java.net.InetAddress;
import java.net.URI;
import java.nio.file.Paths;
import java.util.Map;
import java.util.Vector;
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import core.data.InterfaceData;
import core.exec.PasswordExec;
import core.iface.IUnit;
import core.model.Int... | privacyint/ThornSec | src/profile/Metal.java | 2,772 | //Try not to duplicate ifaces if we're a Router/Metal | line_comment | en | true |
9587_0 | package assignment7;
/**
* Project 7 Chat Room
* EE 422C submission by
* Aditya Kharosekar amk3587
* Rahul Jain rj8656
* Fall 2016
* Slip days used - 1 (on this project) (overall - 2)
* This is the second slip day that we have used this semester
*/
import java.util.HashMap;
import java.util.Set;
/**
* This Ma... | RahulJain28/Project7 | Map.java | 286 | /**
* Project 7 Chat Room
* EE 422C submission by
* Aditya Kharosekar amk3587
* Rahul Jain rj8656
* Fall 2016
* Slip days used - 1 (on this project) (overall - 2)
* This is the second slip day that we have used this semester
*/ | block_comment | en | true |
9818_3 | package io.Lorenzo;
import java.util.Objects;
/**
* A class to represent a MAC address.
* A MAC address is a 48-bit number, usually represented as a 12-digit hexadecimal number.
* The hexadecimal number is usually split into 6 groups of 2 digits, separated by colons.
* For example, the MAC address 00:0a:95:9d:68:... | Her0-GitHub/Java | MAC.java | 1,048 | /**
* @param mac The MAC address, represented as a String.
* The MAC address must be 17 characters long, and must be in the format XX:XX:XX:XX:XX:XX, where X is a hexadecimal digit.
* For example, 00:0a:95:9d:68:16 is a valid MAC address.
* The MAC address cannot be ... | block_comment | en | true |
10415_12 | package billingsystem;
import java.util.ArrayList;
import javafx.scene.control.Label;
/**
*
* @author Jason Li
* @version 1.0
* @since 19.12.2016
*
*
*
* The Class Table.
*/
public class Table extends Label implements java.io.Serializable {
/** The tbl name. */
private String tblName;
/** The peop... | kishanrajput23/Java-Projects-Collections | Billing-system/src/billingsystem/Table.java | 732 | /**
* Gets the number of people at the table.
*
* @return people - Number of people
*/ | block_comment | en | false |
10513_0 | /**
* Created by eugenevendensky on 1/17/17.
*/
public class Bank {
private String accountType;
private String accountNumer;
private int balance;
private String accountHoldersName;
private float intRate;
private String status = "Open";
private boolean overDraf... | ggenya132/Access_Control_Lab | Bank.java | 376 | /**
* Created by eugenevendensky on 1/17/17.
*/ | block_comment | en | true |
10518_0 | import java.util.ArrayList;
public class Cube extends Traceable {
/* A Cube is cube centered at the origin, extending from -1 to +1 on
* each axis
*
* Note: there is a bug in local_intersect so it sometimes does not work
* correctly, but this should not give you a problem.
*/
public String toString() {... | daviddang415/Ray_Tracer | Cube.java | 964 | /* A Cube is cube centered at the origin, extending from -1 to +1 on
* each axis
*
* Note: there is a bug in local_intersect so it sometimes does not work
* correctly, but this should not give you a problem.
*/ | block_comment | en | false |
11161_0 |
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.TreeSet;
impo... | asroilf/MovieDBMS | GUI.java | 2,703 | /**
* This class represents a Graphical User Interface (GUI) for the local movie database.
* Users can view, add, and manage movies in the database through this interface.
* The GUI includes options for sorting and filtering movies by different criteria.
*
* @author Asliddin
* @version 6.0
*/ | block_comment | en | false |
11425_2 | package phoneBook189kk;
/**
*
* @author Kristen Kellerman
* KK: Class Main used for Binary Tree and Hash Table.
*/
public class Main {
/**
* KK: Used in the Binary Tree.
*/
String fullname;
String email;
String pnum;
Main entry;
/**
* KK: Used in the Binary Tree to Find and Delete entries.... | DaeData/Java_Data_Structures | Main.java | 1,900 | /**
* KK: Used in the Binary Tree to Find and Delete entries.
* @param fullname concatenated first name and last name.
* @param entry The entry in the Binary Tree Node.
*/ | block_comment | en | true |
11454_1 | package com.selenium.s1;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import io.github.bonigarcia.wdm.... | Naveenm03/selenium1 | d41.java | 414 | //demo.opencart.com/index.php?route=account/register&language=en-gb");
| line_comment | en | true |
12566_1 | //check if a linkedlist is palindrome or not
class LL {
node head;
class node {
int data;
node next;
node(int data) {
this.data = data;
this.next = null;
}
}
/*
* steps:
* 1. find middle of LL
* 2. reverse 2nd half
* 3. ... | GAGANDASH002/Java-DSA | q4.java | 510 | /*
* steps:
* 1. find middle of LL
* 2. reverse 2nd half
* 3. check 1st and 2nd half
*/ | block_comment | en | false |
13150_9 | package LumberYard;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.time.Instant;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
/**
* LumberYard Log class.
*/
public class Log{
private static final DateTimeFormatter TIMESTAMP_FORMATTE... | YoungGopher/LumberYard | Log.java | 1,600 | /**
* Get the name of the log.
*
* @return the name
*/ | block_comment | en | false |
13299_0 | /*Write a program to input 10 integer elements in an array and sort them in ascending order using the bubble sort technique*/
import java.io.*;
class YT6
{
public static void main(String[] args)throws IOException
{
int a[]= new int[10];
int t=0;
InputStreamReader I = new Inpu... | iankitnegi/CodeJava | YT6.java | 316 | /*Write a program to input 10 integer elements in an array and sort them in ascending order using the bubble sort technique*/ | block_comment | en | true |
13354_0 | /*Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext.
The given compressed string will be in the form of each letter followed by a positive integer representing the number of this letter existing in the original uncompressed string.
nex... | wxping715/LeetCode | 604.java | 275 | /*Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext.
The given compressed string will be in the form of each letter followed by a positive integer representing the number of this letter existing in the original uncompressed string.
nex... | block_comment | en | true |
14391_1 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
* this.left = left;
* ... | iamtanbirahmed/100DaysOfLC | 173.java | 320 | /**
* Your BSTIterator object will be instantiated and called as such:
* BSTIterator obj = new BSTIterator(root);
* int param_1 = obj.next();
* boolean param_2 = obj.hasNext();
*/ | block_comment | en | true |
14627_0 | /* Copyright 2010 Brian Mock
*
* This file is part of visint.
*
* visint 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 your option) any later version.
*... | wavebeem/visint | Axes.java | 451 | /* Copyright 2010 Brian Mock
*
* This file is part of visint.
*
* visint 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 your option) any later version.
*... | block_comment | en | true |
14639_1 | /* Copyright 2010 Brian Mock
*
* This file is part of visint.
*
* visint 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 your option) any later version.
*... | wavebeem/visint | Debug.java | 356 | /**
* This program controls printing debugging output (or not!).
* @author Brian Mock
*/ | block_comment | en | false |
15357_1 | import java.text.ParseException;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.text.MaskFormatter;
/**
* Exemplos CPF válidos:
* <p>
* 123.456.789-09 (12345678909)<br>
* 123.123.123-87 (12312312387)<br>
* 111.222.333-96 (11122233396)
*/
public class ... | ulisseslima/bash-utils | Cpf.java | 1,708 | /**
* @return um CPF aleatório e válido.
* @since Jan 15, 2015
* @author Ulisses
*/ | block_comment | en | true |
16414_1 | import java.util.Scanner;
/*
* 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.
*/
/**
*
* @author 21cse095
*/
public class school {
public static void main(String[] args... | 21cse095/javacode | ex4/ex.java | 652 | /**
*
* @author 21cse095
*/ | block_comment | en | true |
16462_0 | import java.util.ArrayList;
import java.io.*;
public class Driver {
private static ArrayList<Student> studentList;
private static ArrayList<String> schoolList;
public ArrayList<Student> getStudentList() {
return this.studentList;
}
public void setStudentList(ArrayList<Student> studentList) {
this.stude... | mattspahr/CSV-to-Tab | Driver.java | 630 | /*
Reads data from the csv file and creates a Student and stores
it in the list.
*/ | block_comment | en | false |
16477_5 | /*
Prompts a frame that asks the user for their personal information and inputs it into a list to be accessed from again
at a later time. Primarily asks for their first and last name, school name, what type of school they are in, and what
quarter or semester they are in currently. Depending on their answers, different... | rooseveltcs/personal-secretary | Asking.java | 1,925 | /*Shows the introduction text to the user. Primarily is instructions and information to the user*/ | block_comment | en | false |
16795_0 | // https://www.hackerrank.com/challenges/java-1d-array-introduction/problem
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for(int j=0;j<n;j++)
{
... | haytastan/Hackerrank_Java | 19.java | 154 | // https://www.hackerrank.com/challenges/java-1d-array-introduction/problem | line_comment | en | true |
16890_0 |
/**
* Klasse Greifarm.
*
* @author mike_gans@yahoo.de
*
* @version v4.0 (2018-08-7)
*/
public class Greifarm
{
private ea.edu.Dreieck stativ;
private ea.edu.Kreis drehpunkt;
private ea.edu.Rechteck arm;
private Kugel gegriffeneKugel;
private int winkel;
private java.util.L... | engine-alpha/bluej-greifroboter | Greifarm.java | 1,758 | /**
* Klasse Greifarm.
*
* @author mike_gans@yahoo.de
*
* @version v4.0 (2018-08-7)
*/ | block_comment | en | true |
16947_10 | import java.util.*;
public class SRT {
private ArrayList<Process> processes;
private ArrayList<Process> queue;
private Process shortest;
private ArrayList<Process> completed;
private static int QUANTA_MAX = 99;
private static int NUMBER_OF_PROCESSES_TO_MAKE = 30;
private int quanta;
private double... | devstudent123/Scheduling-Algorithms | SRT.java | 1,363 | // If the shortest process is done (execution time remaining == 0)
| line_comment | en | false |
17021_0 | /**
*
* I declare that this code was written by me, 21011805.
* I will not copy or allow others to copy my code.
* I understand that copying code is considered as plagiarism.
*
* Student Name: Leticia Linus Jeraled
* Student ID: 21011805
* Class: E63D
* Date created: 2023-Jan-20 12:37:47 pm
* ... | 21011805-LeticiaLinusJeraled/FYP | Member.java | 1,181 | /**
*
* I declare that this code was written by me, 21011805.
* I will not copy or allow others to copy my code.
* I understand that copying code is considered as plagiarism.
*
* Student Name: Leticia Linus Jeraled
* Student ID: 21011805
* Class: E63D
* Date created: 2023-Jan-20 12:37:47 pm
* ... | block_comment | en | true |
17979_0 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
/**
*
* @author User
*/
class br {
static String readLine() {
throw new UnsupportedOperationException("... | l0vnurul/100days | br.java | 149 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/ | block_comment | en | true |
18110_0 | /*Study the Human class carefully.
Correct the class so that only one initialize method initializes all the Human class's instance variables.
Requirements:
The Human class must have 5 variables.
The class must have one initialize method.
The initialize method must have five parameters. */
/*
Initializing objects
*/
... | samira-nooreen/JavaPracticeProblems | Q40.java | 168 | /*Study the Human class carefully.
Correct the class so that only one initialize method initializes all the Human class's instance variables.
Requirements:
The Human class must have 5 variables.
The class must have one initialize method.
The initialize method must have five parameters. */ | block_comment | en | true |
18261_5 | public class oop {
public static void main(String[] args) {
Pen p1= new Pen();// create a pen obj called p1
p1.size=5;
System.out.println("Pen Size: "+p1.size);
p1.color="Yellow";
System.out.println("Pen Color: "+p1.color);
p1.setColor("Red"); //using setter ... | tanXnyx/java_dsa | oop.java | 511 | //outside of this object, hence we need a method for setting it
| line_comment | en | false |
18527_3 | // Created by Shawn O'Grady on 12/7/17.
// Copyright © 2017 Shawn O'Grady. All rights reserved.
//
/*
This code is a practice Java interview question from testdome.com
https://www.testdome.com/questions/java/two-sum/10284?visibility=1&skillId=4
Problem statement: Write a function that, given a list and a targe... | ShawnROGrady/TestdomeJava | TwoSum.java | 386 | /*
This code is a practice Java interview question from testdome.com
https://www.testdome.com/questions/java/two-sum/10284?visibility=1&skillId=4
Problem statement: Write a function that, given a list and a target sum, returns zero-based indices of any two distinct elements whose sum is equal to the target sum. ... | block_comment | en | true |
19027_11 | /*
Copyright (C) 2004 Geoffrey Alan Washburn
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 your option) any later version.
This program is distributed... | sangaani/Lab2 | Maze.java | 1,225 | /**
* Find out the cardinal direction a {@link Client} is facing.
* @param client The {@link Client} being queried.
* @return The orientation of the specific {@link Client} as a {@link Direction}.
*/ | block_comment | en | false |
19214_6 | class Student {
int coll_id;
String University;
static int University_Code;
// Constructor
public Student() {
coll_id = 56;
University = "OU";
University_Code = 45896;
}
// Here The Static block Execute only once becouse there a class loader and object initialization ,the class load only onc... | NishanthRathod09/JAVA | tut27.java | 429 | // If we don't keep static keyword in main then we need to use the object of Static BLock to over come this we use static keyword | line_comment | en | true |
19263_0 | /*
* Copyright © 2012 Bart Massey and the Fall 2012 Portland State University CS 441/541 class
* [This program is licensed under the "MIT License"]
* Please see the file COPYING in the source
* distribution of this software for license terms.
*/
class Block {
Coord pos; // coordinates of upper-left corner
... | BartMassey/simplicity-solver | Block.java | 454 | /*
* Copyright © 2012 Bart Massey and the Fall 2012 Portland State University CS 441/541 class
* [This program is licensed under the "MIT License"]
* Please see the file COPYING in the source
* distribution of this software for license terms.
*/ | block_comment | en | true |
19383_0 | /**
* @author Etherstrings
* @create 2022-05-30 19:48 PACKAGE_NAME - the name of the target package where the new class or interface will be created. Algorithm - the name of the current project. null.java - the name of the PHP file that will be created. L944 - the name of the new file which you specify in the New ... | Etherstrings/Algorithm | src/L944.java | 354 | /**
* @author Etherstrings
* @create 2022-05-30 19:48 PACKAGE_NAME - the name of the target package where the new class or interface will be created. Algorithm - the name of the current project. null.java - the name of the PHP file that will be created. L944 - the name of the new file which you specify in the New ... | block_comment | en | true |
19625_0 | /**
* GeekBrains. Java. Level 1. Lesson 4. Homework
*
* @author Andrey Klopov
* @version dated 19 may 2017
*1. Полностью разобраться с кодом, попробовать переписать с нуля, стараясь не подглядывать в методичку;
*2. Переделать проверку победы, чтобы она не была реализована просто набором условий, например, с... | 13Fox13/Java1 | DZ4.java | 1,581 | /**
* GeekBrains. Java. Level 1. Lesson 4. Homework
*
* @author Andrey Klopov
* @version dated 19 may 2017
*1. Полностью разобраться с кодом, попробовать переписать с нуля, стараясь не подглядывать в методичку;
*2. Переделать проверку победы, чтобы она не была реализована просто набором условий, например, с... | block_comment | en | true |
20020_5 | package com.example.myfirstapp;
// What's up JDP? Here is a little work I did on the Event and Date classes. We'll discuss all changes on Sunday?
// I'm going to try to do some more work this weekend, but I will mostly just try to learn how to work with the SDK.
public class Date {
private int numberOfEvents;
Event... | david10p/JDP | Date.java | 271 | // Same as displayListOFEvents()? | line_comment | en | true |
20060_0 | /*
* Copyright (c) The League of Amazing Programmers 2013-2017
* Level 1
*/
public class Cat {
private String name;
private int lives = 9;
Cat(String name) {
this.name = name;
}
void meow() {
System.out.println("meeeeeooooooooooowwwwwwwww!!");
}
public void printName() {
if (name == null)
... | League-Level1-Student/level1-module1-kaylarwright | Cat.java | 371 | /*
* Copyright (c) The League of Amazing Programmers 2013-2017
* Level 1
*/ | block_comment | en | true |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5