Hello, sorry if this is the wrong section or forum to post such a thing but I need help. I am having trouble making a program exactly what my professor wants. I know I need two variables meaning two JPoptionpanes but I am not sure how to calcuatore the percetange. Here is the assignment:

Write a program that reads two integers using the JOptionPane class: one representing the number of shots taken by a basketball player, the other representing the number of shots made by the same player. Calculate the shooting percentage and output it formatted with percent notation using the JOptionPane class.

Here is what I have so far(this is just stuff that I formula together and slap on the source code it doe snot work) I can't get the percentage to display

import javax.swing.JOptionPane;
import java.text.NumberFormat;

public class Basketball
public static void main( String [] args )
String input = JOptionPane.showInputDialog( null,
"Please enter shots taken by a basketball player" );
int shotstaken = Integer.parseInt( input );
JOptionPane.showMessageDialog( null, "Baseketball player has taken " +
+ shotstaken + " shots");

String input2 = JOptionPane.showInputDialog( null,
"Please enter shots made by a basketball player" );
int shotsmade = Integer.parseInt( input2 );

double shootingPercentage = (( shotstaken / shotsmade) * 100 );
NumberFormat percentFormat = NumberFormat.getPercentInstance( );

JOptionPane.showMessageDialog( null, "The shooting percentage is " + percentFormat.format( shootingPercentage ) );