public String udp2String(Packet packet) {
		
		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
		
		methodData += src_macInEnglish = ethernetPacket.getSourceAddress();
		//Gets the string value of the src mac address
		methodData += dst_macInEnglish = ethernetPacket.getDestinationAddress();
		//Gets the string value of the dst mac address
		
		methodData += src_UDPPort = udpPacket.src_port;
		//Gets the src udp port
		methodData += sourcePortUDP = String.valueOf(src_UDPPort);
		//creates a string using the port to place in the dataArray
		
		methodData += dst_UDPPort = udpPacket.dst_port;
		//Gets the dst port from the packet
		methodData += destinationPortUDP = String.valueOf(dst_UDPPort);
		//Creates a string from dst_UDPPport
		
		methodData += src_ip = udpPacket.src_ip; //Gets the inet address from the packet
		methodData += srcIPString = src_ip.toString(); //Converts the InetAddress to a string
		methodData += dst_ip = udpPacket.dst_ip; //Gets the inet dst Ip address from udppacket
		methodData += dstIPString = dst_ip.toString(); //Converts that to a string
		
		protocol = udpPacket.protocol; //Grabs the protocol
		methodData += 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
		}
		methodData += data;
		return methodData;
			
	}