public String[] UDP2String(Packet packet) { //Creates a string array with udpPackets
		UDPPacket udpPacket = (UDPPacket) packet; //Creates a udp packet out of the packet
		EthernetPacket ethernetPacket = (EthernetPacket) packet.datalink; 
		//Creates and ethernet packet for layer 2 information
		
		src_macInEnglish = ethernetPacket.getSourceAddress();
		//Gets the string value of the src mac address
		dst_macInEnglish = ethernetPacket.getDestinationAddress();
		//Gets the string value of the dst mac address
		
		src_UDPPort = udpPacket.src_port;
		//Gets the src udp port
		sourcePortUDP = String.valueOf(src_UDPPort);
		//creates a string using the port to place in the dataArray
		
		dst_UDPPort = udpPacket.dst_port;
		//Gets the dst port from the packet
		destinationPortUDP = String.valueOf(dst_UDPPort);
		//Creates a string from dst_UDPPport
		
		src_ip = udpPacket.src_ip; //Gets the inet address from the packet
		srcIPString = src_ip.toString(); //Converts the InetAddress to a string
		dst_ip = udpPacket.dst_ip; //Gets the inet dst Ip address from udppacket
		dstIPString = dst_ip.toString(); //Converts that to a string
		
		protocol = udpPacket.protocol; //Grabs the protocol
		protocolName = "UDP"; //Since this is udp we don't have to worry about other protocols
		
		for(int i = 0; i < udpPacket.data.length; i++) { //Runs through the array containing packet data
			data += String.valueOf((char) udpPacket.data[i]); //Creates a string from every part of that array
		}
		
		dataArray = new String[] {src_macInEnglish, dst_macInEnglish,
				sourcePortUDP, destinationPortUDP, protocolName, data};
		//Array to hold the string data for a table
		return dataArray;
	}