text stringlengths 3 1.18M |
|---|
package com.sb.controller;
import com.sb.view.AddCard;
import com.sb.view.FindStarbucks;
import com.sb.view.MyCardOptions;
import com.sb.view.MyCardsMain;
import com.sb.view.MyCardsMoreOptions;
import com.sb.view.MyCardsPay;
import com.sb.view.MyRewards;
import com.sb.view.Payment;
import com.sb.view.PinScre... |
package com.sb.controller;
import processing.core.PApplet;
/**
* @author RENISH
*
*/
public interface ScreenState {
public void setup(PApplet applet);
public void mousePressed(PApplet applet);
public void draw(PApplet applet);
public void drawArrow(int cx, int cy, int len, float angle, PApplet applet);
}
|
package com.sb.view;
/*
* Author:Manju Rajput Topic: KeyPad
*
*/
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class KeyPad implements ScreenState{
PImage img;
PFont f;
PFont f1;
String input;
Pa... |
package com.sb.view;
import java.util.Random;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class BarCode implements ScreenState {
AppController appController;
PFont f... |
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class MyCardsPay implements ScreenState {
// StarBucks app design - team MARS
// Author : Anupama Patil... |
package com.sb.view;
import com.sb.controller.AppController;
/************************************************************************************
* Author: Madhumita V
* Course#: CMPE 202
* Topic: Command Pattern implementation for Menu toolbar
**********************************************************... |
package com.sb.view;
import java.util.Random;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class FlipScreen implements ScreenState {
AppController appController;
PFon... |
package com.sb.view;
/*
* Author:Manju Rajput Topic: NoPinState (State Pattern for Pin Screen)
*
*/
public class NoPinState implements PassCodeState{
KeyPad keypad;
public NoPinState(KeyPad keypad){
this.keypad = keypad;
}
@Override
public void pressedNumber(String input){
keypad.up... |
package com.sb.view;
/*
* Author:Manju Rajput Topic: ThreePinState (State Pattern for Pin Screen)
*
*/
public class ThreePinState implements PassCodeState{
KeyPad keypad;
public ThreePinState(KeyPad keypad){
this.keypad = keypad;
}
@Override
public void pressedNumber(String input) {
... |
package com.sb.view;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class MyCardsMain ... |
package com.sb.view;
/*
* Author:Manju Rajput Topic: PassCodeState
*
*/
public interface PassCodeState {
public void pressedNumber(String input);
public void backspace();
public String getState();
}
|
package com.sb.view;
/*
* Author:Manju Rajput Topic: TwoPinState (State Pattern for Pin Screen)
*
*/
public class TwoPinState implements PassCodeState{
KeyPad keypad;
public TwoPinState(KeyPad keypad){
this.keypad = keypad;
}
@Override
public void pressedNumber(String input) {
keypad... |
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class MyCardOptions implements ScreenState {
private static final long serialVersionUID = 1L;
/********... |
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class AddCard implements ScreenState {
private static final long serialVersionUID = 1L;
/*************... |
/********************************************/
/*** Author : Sachin Pisal ****/
/********************************************/
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
impo... |
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class MyCardsMoreOptions implements ScreenState {
/***********
* Starbucks-MyCards MoreOptions Author-Ma... |
/********************************************/
/*** Author : Sachin Pisal ****/
/********************************************/
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
impo... |
package com.sb.view;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class Menu implements ScreenState {
AppController appController;
PFont f, f3;
PImage b, MainCard, MyHom... |
package com.sb.view;
/*
* Author:Manju Rajput Topic: OnePinState (State Pattern for Pin Screen)
*
*/
public class OnePinState implements PassCodeState{
KeyPad keypad;
public OnePinState(KeyPad keypad){
this.keypad = keypad;
}
@Override
public void pressedNumber(String input) {
keypad.... |
package com.sb.view;
import processing.core.*;
public class MyProcessingSketch extends PApplet {
/**
*
*/
private static final long serialVersionUID = -4147990818607797918L;
// An array of stripes
Stripe[] stripes = new Stripe[50];
public void setup() {
size(200, 200);
// Initialize all "st... |
package com.sb.view;
import com.sb.controller.AppController;
/************************************************************************************
* Author: Madhumita Vimalanathan
* Course#: CMPE 202
* Topic: Command Pattern implementation for Menu toolbar
************************************************... |
package com.sb.view;
/*
* Author:Manju Rajput Course#:CMPE 202 Topic: Pin Screen (Code for Starbucks)
*
*/
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
public class PinScree... |
package com.sb.view;
import com.sb.controller.AppController;
/************************************************************************************
* Author: Madhumita V
* Course#: CMPE 202
* Topic: Command Pattern implementation for Menu toolbar
************************************************************... |
package com.sb.view;
/*
* Author:Manju Rajput Topic: FourPinState (State Pattern for Pin Screen)
*
*/
public class FourPinState implements PassCodeState{
KeyPad keypad;
public FourPinState(KeyPad keypad){
this.keypad = keypad;
}
@Override
public void pressedNumber(String input) {
}
... |
/**
*
*/
package com.sb.view;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
import com.sb.controller.AppController;
import com.sb.controller.ScreenState;
/**
* @author RENISH
*
*/
public class MyRewards implements ScreenState {
/* Modified by ... |
package com.sb.view;
import processing.core.PApplet;
public class Stripe {
float x; // horizontal location of stripe
float speed; // speed of stripe
float w; // width of stripe
boolean mouse; // state of stripe (mouse is over or not?)
PApplet parent; // The parent PApplet that we will render ourselves ont... |
package com.sb.view;
public class CreditBalance {
private static CreditBalance crdbal;
private static float balance = 20.0f;
public CreditBalance(){
}
public static CreditBalance getInstance() {
if(crdbal == null){
crdbal = new CreditBalance();
}
return crdbal;
}
public static f... |
package com.sb.view;
import com.sb.controller.AppController;
/************************************************************************************
* Author: Madhumita V
* Course#: CMPE 202
* Topic: Command Pattern implementation for Menu toolbar
************************************************************... |
package com.sb.view;
import com.sb.controller.AppController;
/************************************************************************************
* Author: Madhumita V
* Course#: CMPE 202
* Topic: Command Pattern implementation for Menu toolbar
************************************************************... |
package com.sb.controller;
import com.sb.view.AddCard;
import com.sb.view.FindStarbucks;
import com.sb.view.MyCardOptions;
import com.sb.view.MyCardsMain;
import com.sb.view.MyCardsMoreOptions;
import com.sb.view.MyCardsPay;
import com.sb.view.MyRewards;
import com.sb.view.Payment;
import com.sb.view.PinScre... |
package com.sb.controller;
import processing.core.PApplet;
/**
* @author RENISH
*
*/
public interface ScreenState {
public void setup(PApplet applet);
public void mousePressed(PApplet applet);
public void draw(PApplet applet);
public void drawArrow(int cx, int cy, int len, float angle, PApplet applet);
}
|
package com.sb.test;
import static org.junit.Assert.*;
import org.junit.Test;
import com.sb.view.CreditBalance;
public class MyCardsMoreOptions {
@Test
public void testGetBalance() {
float expectedf = 16.4f;
float actualf;
CreditBalance bal = new CreditBalance();
actualf = bal.getBalance();
assertEqua... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 agre... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 agre... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 agre... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 agre... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/**
* This file is part of qCraft - http://www.qcraft.org Copyright Daniel Ratcliffe and
* TeacherGaming LLC, 2013. Do not distribute without permission. Send enquiries
* to dratcliffe@gmail.com
*/
package dan200.qcraft.shared;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.netw... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
/*
Copyright 2014 Google Inc. All rights reserved.
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 ... |
public class test {
public static void main(String[] args) {
long startTime =System.currentTimeMillis();
for(int i=0;i<100000;i++)
{
for(int j=0;j<100000;j++)
{}
}
long totalTime = System.currentTimeMillis()- startTime;
System.out.println(totalTime);
}
}
|
import java.util.Scanner;
public class hello {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("hello world!");
int i=sc.nextInt();
int j=sc.nextInt();
System.out.println(i+j);
}
}
|
import java.util.Scanner;
public class DtoH {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("input your number(0 for ending the program):");
int i=sc.nextInt();
while(i!=0)
{
System.out.println(Integer.toHexString(i));
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyfix.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.poly.polyfix.impl.D... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Dog {
private int spots;
public int getSpots() {
return spots;
}
public void set... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class PolyFix {
public int puppySpots(){
Puppy p = new Puppy();
return p.getSpots();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Puppy extends Dog{
void play(String plaything){
System.out.println("Chewing on "+plaything);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyviolation.conf;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.poly.polyviolation.impl.Dog;
/**
*
* @author Ilyaas Khatib
*/
public c... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.poly.polyviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Dog {
private String name;
public String getName() {
return name;
}
public... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compviolation.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.comp.compviol... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Fruit {
public int seeds() {
System.out.println("This has seeds.");
return 1;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Apple extends Fruit{
@Override
public int seeds() {
return super.seeds();
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class CompViolation {
public static void main(String[] args) {
Apple apple = new Apple();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compfix.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.comp.compfix.impl... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Fruit {
public int seeds() {
System.out.println("This has seeds.");
return 1;
}... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Apple {
private Fruit f = new Fruit();
public int seeds(){
return f.seeds();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.comp.compfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class CompFix {
public static void main(String[] args) {
Apple a = new Apple();
int seeds ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritfix.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.inherit.inher... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Child extends Parent{
@Override
public void setBlood(String blood) {
super.setBlood("A... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Parent {
private String colour;
private String blood;
public String getBlood() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritviolation.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.inherit... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Child {
private String colour;
private String blood;
public String getBlood() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class InheirtViolation {
public static void main(String[] args) {
Parent p = new Parent... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.inherit.inheritviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Parent {
private String colour;
private String blood;
public String getBlood() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.encap.encapfix.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.encap.encapfix.im... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.encap.encapfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class EncapFix {
public static void main(String[] args) {
Account acc = new Account();
a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.encap.encapfix.impl;
/**
*
* @author Ilyaas Khatib
*/
public class Account {
private double salary;
private double tax;
private double balance;
public doubl... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.encap.encapviolation.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.encap.encap... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.cput.ac.concepts.encap.encapviolation.impl;
/**
*
* @author Ilyaas Khatib
*/
public class EncapViolation {
public static int money ;
public static void main(String[] args) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.