No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]public List<Data.ListBoxData> Size() { List<Data.ListBoxData> result; Data.ListBoxData data; result = new List<Data.ListBoxData>(); var query = from a in base.MyEntities.style_sz select new { a.id, a.size }; foreach (var itm in query) { data = new Data.ListBoxData(); data.DisplayText = itm.size.ToString(); data.ValueText = itm.size.ToString(); ArrayList list1 = new ArrayList(itm.size.Split(',')); foreach (string i in … |
|
Sever.java file [CODE]import java.net.*; import java.io.*; import java.util.*; /** * Simple server use to teach University of * Northumbria's Operating Systems and Networks modules. * To be used with compatible simple client. * <PRE> * Protocol: * client <---message--- server * message = <message body> CRLF * </PRE> * * … |
|
The Question is : Three stacks can be used to sort a list of numbers. Assuming stack in holds the input list of numbers, stack out is to hold the output list after sorting the numbers and temp is used during the sorting process. The sorting algorithm follows. 1 set … |
|
import java.util.*; public class MainAssignment3 { public static void main(String[]args) { int Max =0; int Value =0; LinkedList<Integer>Input=new LinkedList<Integer>(); LinkedList<Integer>Temp=new LinkedList<Integer>(); LinkedList<Integer>OutPut=new LinkedList<Integer>(); Input.addLast(90); Input.addLast(21); Input.addLast(33); Input.addLast(80); Input.addLast(67); System.out.println("The Input Stack is : " + Input); while(!Input.isEmpty()) { Max = (Integer)Input.removeLast(); Value = (Integer)Input.removeLast(); System.out.println("MAx: " +Max); System.out.println("Value: " +Value); … |
|
oldAccount text file is Nicholas, Diana, Eric,Andy, Alex , AMy CurrentAccount text file is Andy Alex Amy Kelvin cherry Betty import java.util.*; import java.io.*; public class Example2 { public static void main(String[]args) throws IOException { System.out.print (" Old Account is: "); System.out.println(); TreeSet<String> oldAcc = new TreeSet<String>(); Scanner oldacc = … |