- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
- Interests
- Nothing to see on this page,not your business
What does mean by saying polymorphism allows programming in general rather then programming in specific? |
|
Hi everyone .I am looking for some nice c# project,-free source on which i can apply unit tests,rhino mocks,stubs.Can you sugest any source to get the project,i need to practice on tests.Thanks |
|
Hi,i have a code like this : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibraryMoq { public class Class1 { public interface ISendr { string send(); } public class smsSender : ISendr { public string send() { return "SMS send"; } } public class emailSender : … |
|
Hi,can somebody help me to call the boolean method in foreach in client. Here is my code: Client namespace Client { class Program { static void Main(string[] args) { var list = new List<Tuple<int, string>>(); list.Add(Tuple.Create(100, "Andy")); list.Add(Tuple.Create(200, "John")); list.Add(Tuple.Create(300, "Sally")); foreach (var item in list) { Console.WriteLine(item.Item1.ToString()); Console.WriteLine(item.Item2); } … |
|
Hi all would like to ask question about JPA syntax ,which of this 2 versions of code syntaticly better and safer? public static Prices getPriceById(int id){ EntityManager em = DBUtil.getEntityManagerFactory().createEntityManager(); return em.find(Prices.class, id); } or this version : public static Prices getPriceById(int id){ EntityManager em = DBUtil.getEntityManagerFactory().createEntityManager(); try{ Prices pr … |
|
Hi have a question,why i do not get value output for FutureValue,do i use in the wrong place in Main method calculateFutureValue() ? package sd4.dobs.ui; import java.util.Scanner; public class Console { private static Scanner sc = new Scanner(System.in); public static void displayLine() { System.out.println(); } public static void displayLine(String s) … |
|
Hi all i have couple jsp pages and java class as follows below.Can you help me with the session on the handleForm .jsp As this page supposed to show all info entered by the user in the form.I did manage to display session object in thanks,jsp But have now a … |
|
Have a problem on line 128 : out.println("Location \tAveragePrice"); Not recognize it.And the program not compiling. Have a txt file(cars.txt) : CARREG MAKE MODEL COLOUR LOCATIOn PRICE OWNERS MILEAGE 09-L-1258 OPEL ASTRA SILVER LIMERICK 12999 0 35000 01-D-7845 FORD FOCUS BLACK LIMERICK 1500 3 85000 11-D-7425 NISSAN ALMERA WHITE DUBLIN … |
|
Hi,please help.Stack with streamtokens.I want to figure out how to print the table : County Max Min Condition Clare 4 0 Cloudy Cork 3 0 Rain Kerry 4 1 Showers Limerick 4 1 Cloudy Tipperary 3 -1 Clear Waterford 2 -2 Clear in format : County Average Daily Temp Freeze … |
|
Hi all can you throw some light on the resolution of my problem,should be simple ,but can not figured out .Here is my server and client class,The problem is server does not show the JOption pane with result. public class Client { /** * @param args the command line arguments … |
|
Hi all.I got task to do,here are the details: A social network service consists of a representation of each user (often a profile), his/her social links, and a variety of additional services Registered users may register and set up a PROFILE/ home page, photo etc. Please advise the steps,how it … |
|
Please,help to set the relational notations in database table.Would much appreceate the help. ![database.png](/attachments/large/4/7de31bb1f14ab6db9af54e4c91d912a7.png "align-center") |
|
Hi can anyone help with EER diagram,have databse,but need EER diagram,in workbench backword engineer does not create the relationships automatically.Need to set up manually.Just for 4 tables.Can someone help? I will upload then my database file.Thanks |
|
Re:
This is a very simple login form. I set it up so that the form won't close until it's cancelled or a valid username and password are entered. I chained the check for the username and the check for the password, so that if the username doesn't pass the password … |
|
How do i slow down event,so the output would look like this? ![inf0.jpg](/attachments/large/4/604aa730335dcea1405b3a2282ba3097.jpg "align-center") using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace Event1 { public delegate void DingDongHandler(string text); public class ClassWithEvent { public Timer DingdongTimer { get; private set; } public event DingDongHandler DingDong; public void … |
|
Hi have a question,i know it is always a good practice to include default in the switch,but can it be omitted in this case? As i see it would be redundant. static void Main(string[] args) { bool quit = false; do { var option = ShowMenu(); switch (option) { case … |
|
namespace BinaryFileIO { class Program { static void Main() { FileStream BinFile = new FileStream("BinFile.bin", FileMode.Create, FileAccess.Write); BinaryFormatter bformatter1 = new BinaryFormatter(); //right to file Random rng = new Random(); for (int i = 0; i < 10; i++) { // how do i put to the file and than … |
|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CompareLab { abstract class Person { public string Name { get; set; } public string Id { get; set; } public Person( string name,int ID) { Name = name; Id = ID; } public abstract void DisplayDetails( ); } … |
|
![Untitled1.jpg](/attachments/large/4/af84738d3622fd36115e8d4a78a992f1.jpg "align-center") Hi all,how do i do cascade on delete and update on this to tables,i have database,once i enter lecturer i can not delete because of constraints between this 2 tables.I tried in Lecturer table choose cascade on delete and update,not allowed,if do from module table same story. ![Untitled.jpg](/attachments/large/4/7437ddeb602b1183a2451fa886597054.jpg … |
|
Hi this is my program,supposed to output all methods ,based on "square" input and based on"circle" output case circle.But in any of the scenario only one function gets executed,What did i missed? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; delegate int OperationDelegate(int a); namespace DelegationLAB { public … |
|
Hi, how can i avoid of key beeing inserted into wrong location.If i do lets say 3 numbers ,5 digits long like 12345,23445,56745 and choose location 45,they will be inserted to location 45,but if try to insert 67452 to the same location it will be inserted,but i need it to … |
|
Hi all,can someone help to identify and remove strange blue lines in the form: //here is the form: <form class="getinput" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <div> <h2>Login</h2> <table class="form"> <tr><td> <label> <span>Lecturer ID</span><input name="lecturerId" type="text" id="tableField"> </label> </td></tr> <tr><td> </td></tr> <tr><td> <label> <span>Password</span><input name="password" type="text" id="tableField"><br/> <input name="send" type="submit" id="sendButton" value="Submit"> … |
|
I have this program,all i am stuck with is how to check if my file League.bin exits and if it is exists need to de-serialized into ArrayList and if it does exist user should initialize 4 teams,which i tried in FootballMethod(),plus i tried to do in the main top check … |
|
Here is my code,how do i use the length property to show length of the random.bin file? static void Main(string[] args) { FileStream fs = new FileStream("random.bin", FileMode.OpenOrCreate, FileAccess.ReadWrite); // has to be declared in method scope Random r = new Random(); for (int i = 0; i < 10; … |
|
Hi here is my code,can someone help to edit the directory.getfile(),so i could output all files in c:\ Windows ? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicalDrives { class Program { public static void GetLogicalDrives() { string[] drives = System.IO.Directory.GetLogicalDrives(); foreach (string str … |
|
Hi can anyone give an answer? Found this in cryptology book: ii. Assuming that your computing platform can perform 1 billion divisions per second (and assuming that the rest of the program takes negligible time), what is the largest number of digits an inputted integer n could have so that … |
|
Hi all,can someone show how to ctreate binary file ,using Filestream and rand function Random r = new Random(),then close,open file and read numbers from file and write to the console binary numbers.I see i need the loop structure.Can't find an example.Thanks in advance. |
|
I need to appned .txt to user input,like course and put in to the file,looks like i managed to do it ,but in second part need arraylist and insert into it subjects and then right to the text file and ouput/display. For some reason the 'exit' is diplayed too and … |
|
Hi all here is my database,need help to add and associate edit button to the table |