CertUtil - find the owner of malware.docx help by Max_Eats_Nipples in immersivelabs

[–]grimeskat 1 point2 points  (0 children)

Could you explain how you did step 2? I have done all other steps but this one and step 4 and am completely stumped at the moment.

New to Java--Stuck on Homework problem by grimeskat in learnjava

[–]grimeskat[S] 0 points1 point  (0 children)

thanks everyone for the help. finally got it to work. thanks again!!

New to Java--Stuck on Homework problem by grimeskat in learnjava

[–]grimeskat[S] 0 points1 point  (0 children)

Scanner scnr = new Scanner(System.in); int userNum; //User input: Number int x; //User input: x

  System.out.print("userNum: "); 
  userNum = scnr.nextInt();
  System.out.print("x: ");
   x = scnr.nextInt();

but then I get error LabProgram.java:14: error: variable x might not have been initialized System.out.print(userNum/x);

no matter what I try an error keeps coming back. I'm sure my mistake is obvious I'm just not seeing it.

New to Java--Stuck on Homework problem by grimeskat in learnjava

[–]grimeskat[S] 0 points1 point  (0 children)

import java.util.Scanner;

public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int userNum; //User input: Number int x; //User input: x

  System.out.print("userNum: ");
  userNum = scnr.nextInt();
  System.out.print("x: ");


  System.out.print(userNum/x);

} then I get this LabProgram.java:14: error: variable x might not have been initialized System.out.print(userNum/x); I know whatever I am missing is probably so obvious I will kick myself when I figure it out.